public abstract class AnimationElement extends SVGElement
Modifier and Type | Field and Description |
---|---|
static int |
AC_REPLACE
Accumlative state
|
static int |
AC_SUM |
static int |
AD_REPLACE
Additive state of track
|
static int |
AD_SUM |
static int |
AT_AUTO |
static int |
AT_CSS |
static int |
AT_XML |
protected String |
attribName |
protected int |
attribType |
protected TimeBase |
beginTime |
protected TimeBase |
durTime |
protected TimeBase |
endTime |
protected int |
fillType |
static int |
FT_AUTO |
static int |
FT_DEFAULT |
static int |
FT_FREEZE |
static int |
FT_HOLD |
static int |
FT_REMOVE
|
static int |
FT_TRANSITION |
children, cssClass, diagram, id, ignorePresAttrib, inlineStyles, parent, presAttribs, serialVersionUID, SVG_NS, trackManager, xmlBase
Constructor and Description |
---|
AnimationElement()
Creates a new instance of AnimateEle
|
Modifier and Type | Method and Description |
---|---|
static String |
animationElementToString(int attrValue) |
void |
evalParametric(AnimationTimeEval state,
double curTime) |
protected void |
evalParametric(AnimationTimeEval state,
double curTime,
double repeatCount,
double repeatDur)
Compares current time to start and end times and determines what degree
of time interpolation this track currently represents.
|
int |
getAccumulateType() |
int |
getAdditiveType() |
String |
getAttribName() |
int |
getAttribType() |
void |
loaderStartElement(SVGLoaderHelper helper,
Attributes attrs,
SVGElement parent)
Called during SAX load process to notify that this tag has begun the
process of being loaded
|
void |
rebuild() |
protected void |
rebuild(AnimTimeParser animTimeParser) |
boolean |
updateTime(double curTime)
Updates all attributes in this diagram associated with a time event.
|
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
protected String attribName
protected int attribType
public static final int AT_CSS
public static final int AT_XML
public static final int AT_AUTO
protected int fillType
public static final int FT_REMOVE
public static final int FT_FREEZE
public static final int FT_HOLD
public static final int FT_TRANSITION
public static final int FT_AUTO
public static final int FT_DEFAULT
public static final int AD_REPLACE
public static final int AD_SUM
public static final int AC_REPLACE
public static final int AC_SUM
public AnimationElement()
public static String animationElementToString(int attrValue)
public void loaderStartElement(SVGLoaderHelper helper, Attributes attrs, SVGElement parent) throws SAXException
SVGElement
loaderStartElement
in class SVGElement
helper
- - An object passed to all SVG elements involved in this
build process to aid in sharing information.attrs
- - Attributes of this tagSAXException
public String getAttribName()
public int getAttribType()
public int getAdditiveType()
public int getAccumulateType()
public void evalParametric(AnimationTimeEval state, double curTime)
protected void evalParametric(AnimationTimeEval state, double curTime, double repeatCount, double repeatDur)
state
- - A structure that will be filled with information
regarding the applicability of this animatoin element at the passed
time.curTime
- - Current time in secondsrepeatCount
- - Optional number of repetitions of length 'dur' to
do. Set to Double.NaN to not consider this in the calculation.repeatDur
- - Optional amoun tof time to repeat the animaiton.
Set to Double.NaN to not consider this in the calculation.public boolean updateTime(double curTime)
updateTime
in class SVGElement
public void rebuild() throws SVGException
SVGException
protected void rebuild(AnimTimeParser animTimeParser) throws SVGException
SVGException
Copyright ?? 2011-2014 Kitfox Studios. All Rights Reserved.