com.kitfox.svg.animation
Class Animate
java.lang.Object
com.kitfox.svg.SVGElement
com.kitfox.svg.animation.AnimationElement
com.kitfox.svg.animation.AnimateBase
com.kitfox.svg.animation.Animate
- All Implemented Interfaces:
- AnimateColorIface, java.io.Serializable
public class Animate
- extends AnimateBase
- implements AnimateColorIface
Animate is a really annoying morphic tag that could represent a real value,
a color or a path
- Author:
- Mark McKay, Mark McKay
- See Also:
- Serialized Form
Fields inherited from class com.kitfox.svg.animation.AnimationElement |
AC_REPLACE, AC_SUM, AD_REPLACE, AD_SUM, AT_AUTO, AT_CSS, AT_XML, attribName, attribType, beginTime, durTime, endTime, fillType, FT_AUTO, FT_DEFAULT, FT_FREEZE, FT_HOLD, FT_REMOVE, FT_TRANSITION |
Fields inherited from class com.kitfox.svg.SVGElement |
children, cssClass, diagram, id, ignorePresAttrib, inlineStyles, parent, presAttribs, serialVersionUID, SVG_NS, trackManager, xmlBase |
Constructor Summary |
Animate()
Creates a new instance of Animate |
Method Summary |
double |
eval(double interp)
Evaluates this animation element for the passed interpolation time. |
java.awt.Color |
evalColor(double interp)
|
java.awt.geom.GeneralPath |
evalPath(double interp)
|
int |
getDataType()
|
void |
loaderStartElement(SVGLoaderHelper helper,
org.xml.sax.Attributes attrs,
SVGElement parent)
Called during SAX load process to notify that this tag has begun the process
of being loaded |
double |
repeatSkipSize(int reps)
If this element is being accumulated, detemine the delta to accumulate by |
Methods inherited from class com.kitfox.svg.SVGElement |
addAttribute, build, buildPath, getChild, getChildren, getId, getInlineAttributes, getParent, getParentContext, getPath, getPres, getPresAbsolute, getPresentationAttributes, getStyle, getStyle, getStyleAbsolute, getXMLBase, hasAttribute, indexOfChild, loaderAddChild, loaderAddText, loaderEndElement, nextFloat, parsePathList, parseSingleTransform, parseTransform, popParentContext, pushParentContext, removeChild, setAttribute, swapChildren |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DT_REAL
public static final int DT_REAL
- See Also:
- Constant Field Values
DT_COLOR
public static final int DT_COLOR
- See Also:
- Constant Field Values
DT_PATH
public static final int DT_PATH
- See Also:
- Constant Field Values
fromValue
protected double fromValue
toValue
protected double toValue
byValue
protected double byValue
valuesValue
protected double[] valuesValue
fromColor
protected java.awt.Color fromColor
toColor
protected java.awt.Color toColor
fromPath
protected java.awt.geom.GeneralPath fromPath
toPath
protected java.awt.geom.GeneralPath toPath
Animate
public Animate()
- Creates a new instance of Animate
getDataType
public int getDataType()
loaderStartElement
public void loaderStartElement(SVGLoaderHelper helper,
org.xml.sax.Attributes attrs,
SVGElement parent)
throws org.xml.sax.SAXException
- Description copied from class:
SVGElement
- Called during SAX load process to notify that this tag has begun the process
of being loaded
- Overrides:
loaderStartElement
in class AnimateBase
- Parameters:
helper
- - An object passed to all SVG elements involved in this build
process to aid in sharing information.attrs
- - Attributes of this tag
- Throws:
org.xml.sax.SAXException
eval
public double eval(double interp)
- Evaluates this animation element for the passed interpolation time. Interp
must be on [0..1].
evalColor
public java.awt.Color evalColor(double interp)
- Specified by:
evalColor
in interface AnimateColorIface
evalPath
public java.awt.geom.GeneralPath evalPath(double interp)
repeatSkipSize
public double repeatSkipSize(int reps)
- If this element is being accumulated, detemine the delta to accumulate by