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, 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 |
| Methods inherited from class com.kitfox.svg.SVGElement |
addAttribute, build, buildPath, getChild, getChild, getChildren, getId, getInlineAttributes, getNumChildren, getParent, getParentContext, getPath, getPres, getPresAbsolute, getPresentationAttributes, getStyle, getStyle, getStyleAbsolute, getXMLBase, hasAttribute, indexOfChild, loaderAddChild, loaderAddText, loaderEndElement, nextFloat, parsePathList, parseSingleTransform, parseTransform, popParentContext, pushParentContext, removeAttribute, removeChild, setAttribute, setDiagram, 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 Color fromColor
toColor
protected Color toColor
fromPath
protected GeneralPath fromPath
toPath
protected GeneralPath toPath
Animate
public Animate()
- Creates a new instance of Animate
getDataType
public int getDataType()
loaderStartElement
public void loaderStartElement(SVGLoaderHelper helper,
Attributes attrs,
SVGElement parent)
throws 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:
SAXException
eval
public double eval(double interp)
- Evaluates this animation element for the passed interpolation time. Interp
must be on [0..1].
evalColor
public Color evalColor(double interp)
- Specified by:
evalColor in interface AnimateColorIface
evalPath
public GeneralPath evalPath(double interp)
repeatSkipSize
public double repeatSkipSize(int reps)
- If this element is being accumulated, detemine the delta to accumulate by
rebuild
protected void rebuild(AnimTimeParser animTimeParser)
throws SVGException
- Overrides:
rebuild in class AnimateBase
- Throws:
SVGException
Copyright © 2011-2012 Barchart, Inc.. All Rights Reserved.