org.apache.batik.bridge

Class SVGAnimateMotionElementBridge

public class SVGAnimateMotionElementBridge extends SVGAnimateElementBridge

Bridge class for the 'animateMotion' animation element.
Method Summary
protected AbstractAnimationcreateAnimation(AnimationTarget target)
Creates the animation object for the animation element.
protected intgetDefaultCalcMode()
Returns the calcMode that the animation defaults to if none is specified.
BridgegetInstance()
Returns a new instance of this bridge.
StringgetLocalName()
Returns 'animateMotion'.
AnimatableValuegetUnderlyingValue()
Returns the underlying value of the animated attribute.
protected voidinitializeAnimation()
Parses the animation element's target attributes and adds it to the document's AnimationEngine.
protected float[]parseKeyPoints()
Returns the parsed 'keyPoints' attribute from the animation element.
protected AnimatableValueparseLengthPair(String ln)
Parses a single comma-separated length pair.
protected ExtendedGeneralPathparsePath()
Returns the parsed 'path' attribute (or the path from a referencing 'mpath') from the animation element.
protected AnimatableValue[]parseValues()
Returns the parsed 'values' attribute from the animation element.
protected AnimatableValue[]parseValues(String s)

Method Detail

createAnimation

protected AbstractAnimation createAnimation(AnimationTarget target)
Creates the animation object for the animation element.

getDefaultCalcMode

protected int getDefaultCalcMode()
Returns the calcMode that the animation defaults to if none is specified.

getInstance

public Bridge getInstance()
Returns a new instance of this bridge.

getLocalName

public String getLocalName()
Returns 'animateMotion'.

getUnderlyingValue

public AnimatableValue getUnderlyingValue()
Returns the underlying value of the animated attribute. Used for composition of additive animations.

initializeAnimation

protected void initializeAnimation()
Parses the animation element's target attributes and adds it to the document's AnimationEngine.

parseKeyPoints

protected float[] parseKeyPoints()
Returns the parsed 'keyPoints' attribute from the animation element.

parseLengthPair

protected AnimatableValue parseLengthPair(String ln)
Parses a single comma-separated length pair.

parsePath

protected ExtendedGeneralPath parsePath()
Returns the parsed 'path' attribute (or the path from a referencing 'mpath') from the animation element.

parseValues

protected AnimatableValue[] parseValues()
Returns the parsed 'values' attribute from the animation element.

parseValues

protected AnimatableValue[] parseValues(String s)
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.