Package com.kitfox.svg.animation
Class AnimateColor
- java.lang.Object
-
- com.kitfox.svg.SVGElement
-
- com.kitfox.svg.animation.AnimationElement
-
- com.kitfox.svg.animation.AnimateBase
-
- com.kitfox.svg.animation.AnimateColor
-
- All Implemented Interfaces:
AnimateColorIface,java.io.Serializable
public class AnimateColor extends AnimateBase implements AnimateColorIface
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.awt.ColorfromValuestatic java.lang.StringTAG_NAMEprivate java.awt.ColortoValue-
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, 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
Constructors Constructor Description AnimateColor()Creates a new instance of Animate
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.ColorevalColor(double interp)Evaluates this animation element for the passed interpolation time.java.awt.ColorgetFromValue()java.lang.StringgetTagName()java.awt.ColorgetToValue()voidloaderStartElement(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 loadedprotected voidrebuild(AnimTimeParser animTimeParser)voidsetFromValue(java.awt.Color fromValue)voidsetToValue(java.awt.Color toValue)-
Methods inherited from class com.kitfox.svg.animation.AnimateBase
evalParametric, getRepeatCount, getRepeatDur, setRepeatCount, setRepeatDur
-
Methods inherited from class com.kitfox.svg.animation.AnimationElement
animationElementToString, evalDurTime, evalEndTime, evalParametric, evalStartTime, getAccumulateType, getAdditiveType, getAttribName, getAttribType, getBeginTime, getDurTime, getEndTime, getFillType, hasEndTime, rebuild, setAccumulateType, setAdditiveType, setBeginTime, setDurTime, setEndTime, setFillType, updateTime
-
Methods inherited from class com.kitfox.svg.SVGElement
addAttribute, build, buildPath, getChild, getChild, getChildren, getId, getInlineAttributes, getNumChildren, getParent, getParentContext, getPath, getPres, getPresAbsolute, getPresentationAttributes, getRoot, getStyle, getStyle, getStyle, getStyleAbsolute, getXMLBase, hasAttribute, indexOfChild, lerp, loaderAddChild, loaderAddText, loaderEndElement, nextFloat, parsePathList, parseSingleTransform, parseTransform, popParentContext, pushParentContext, removeAttribute, removeChild, setAttribute, setDiagram, swapChildren
-
-
-
-
Field Detail
-
TAG_NAME
public static final java.lang.String TAG_NAME
- See Also:
- Constant Field Values
-
fromValue
private java.awt.Color fromValue
-
toValue
private java.awt.Color toValue
-
-
Method Detail
-
getTagName
public java.lang.String getTagName()
- Specified by:
getTagNamein classSVGElement
-
loaderStartElement
public void loaderStartElement(SVGLoaderHelper helper, org.xml.sax.Attributes attrs, SVGElement parent) throws org.xml.sax.SAXException
Description copied from class:SVGElementCalled during SAX load process to notify that this tag has begun the process of being loaded- Overrides:
loaderStartElementin classAnimateBase- 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
-
evalColor
public java.awt.Color evalColor(double interp)
Evaluates this animation element for the passed interpolation time. Interp must be on [0..1].- Specified by:
evalColorin interfaceAnimateColorIface
-
rebuild
protected void rebuild(AnimTimeParser animTimeParser) throws SVGException
- Overrides:
rebuildin classAnimateBase- Throws:
SVGException
-
getFromValue
public java.awt.Color getFromValue()
- Returns:
- the fromValue
-
setFromValue
public void setFromValue(java.awt.Color fromValue)
- Parameters:
fromValue- the fromValue to set
-
getToValue
public java.awt.Color getToValue()
- Returns:
- the toValue
-
setToValue
public void setToValue(java.awt.Color toValue)
- Parameters:
toValue- the toValue to set
-
-