Package com.kitfox.svg.animation
Class AnimateBase
- java.lang.Object
-
- com.kitfox.svg.SVGElement
-
- com.kitfox.svg.animation.AnimationElement
-
- com.kitfox.svg.animation.AnimateBase
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
Animate
,AnimateColor
,AnimateXform
public abstract class AnimateBase extends AnimationElement
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private double
repeatCount
private TimeBase
repeatDur
-
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 AnimateBase()
Creates a new instance of Animate
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
evalParametric(AnimationTimeEval state, double curTime)
double
getRepeatCount()
TimeBase
getRepeatDur()
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 loadedprotected void
rebuild(AnimTimeParser animTimeParser)
void
setRepeatCount(double repeatCount)
void
setRepeatDur(TimeBase repeatDur)
-
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, getTagName, getXMLBase, hasAttribute, indexOfChild, lerp, loaderAddChild, loaderAddText, loaderEndElement, nextFloat, parsePathList, parseSingleTransform, parseTransform, popParentContext, pushParentContext, removeAttribute, removeChild, setAttribute, setDiagram, swapChildren
-
-
-
-
Field Detail
-
repeatCount
private double repeatCount
-
repeatDur
private TimeBase repeatDur
-
-
Method Detail
-
evalParametric
public void evalParametric(AnimationTimeEval state, double curTime)
- Overrides:
evalParametric
in classAnimationElement
-
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 classAnimationElement
- 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
-
rebuild
protected void rebuild(AnimTimeParser animTimeParser) throws SVGException
- Overrides:
rebuild
in classAnimationElement
- Throws:
SVGException
-
getRepeatCount
public double getRepeatCount()
- Returns:
- the repeatCount
-
setRepeatCount
public void setRepeatCount(double repeatCount)
- Parameters:
repeatCount
- the repeatCount to set
-
getRepeatDur
public TimeBase getRepeatDur()
- Returns:
- the repeatDur
-
setRepeatDur
public void setRepeatDur(TimeBase repeatDur)
- Parameters:
repeatDur
- the repeatDur to set
-
-