Package com.kitfox.svg.animation
Class AnimateTransform
- java.lang.Object
-
- com.kitfox.svg.SVGElement
-
- com.kitfox.svg.animation.AnimationElement
-
- com.kitfox.svg.animation.AnimateBase
-
- com.kitfox.svg.animation.AnimateXform
-
- com.kitfox.svg.animation.AnimateTransform
-
- All Implemented Interfaces:
java.io.Serializable
public class AnimateTransform extends AnimateXform
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private intadditivestatic intAT_REPLACEstatic intAT_SUMprivate double[]keyTimesstatic java.lang.StringTAG_NAMEstatic intTR_INVALIDstatic intTR_ROTATEstatic intTR_SCALEstatic intTR_SKEWXstatic intTR_SKEWYstatic intTR_TRANSLATEprivate double[][]valuesprivate intxformType-
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 AnimateTransform()Creates a new instance of Animate
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.geom.AffineTransformeval(java.awt.geom.AffineTransform xform, double interp)Evaluates this animation element for the passed interpolation time.intgetAdditive()double[]getKeyTimes()java.lang.StringgetTagName()double[][]getValues()intgetXformType()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)voidsetAdditive(int additive)voidsetKeyTimes(double[] keyTimes)voidsetValues(double[][] values)voidsetXformType(int xformType)private double[]validate(double[] paramList)Check list size against current xform type and ensure list is expanded to a standard list size-
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
-
values
private double[][] values
-
keyTimes
private double[] keyTimes
-
AT_REPLACE
public static final int AT_REPLACE
- See Also:
- Constant Field Values
-
AT_SUM
public static final int AT_SUM
- See Also:
- Constant Field Values
-
additive
private int additive
-
TR_TRANSLATE
public static final int TR_TRANSLATE
- See Also:
- Constant Field Values
-
TR_ROTATE
public static final int TR_ROTATE
- See Also:
- Constant Field Values
-
TR_SCALE
public static final int TR_SCALE
- See Also:
- Constant Field Values
-
TR_SKEWY
public static final int TR_SKEWY
- See Also:
- Constant Field Values
-
TR_SKEWX
public static final int TR_SKEWX
- See Also:
- Constant Field Values
-
TR_INVALID
public static final int TR_INVALID
- See Also:
- Constant Field Values
-
xformType
private int xformType
-
-
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 classAnimateXform- 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
-
validate
private double[] validate(double[] paramList)
Check list size against current xform type and ensure list is expanded to a standard list size
-
eval
public java.awt.geom.AffineTransform eval(java.awt.geom.AffineTransform xform, double interp)Evaluates this animation element for the passed interpolation time. Interp must be on [0..1].- Specified by:
evalin classAnimateXform
-
rebuild
protected void rebuild(AnimTimeParser animTimeParser) throws SVGException
- Overrides:
rebuildin classAnimateBase- Throws:
SVGException
-
getValues
public double[][] getValues()
- Returns:
- the values
-
setValues
public void setValues(double[][] values)
- Parameters:
values- the values to set
-
getKeyTimes
public double[] getKeyTimes()
- Returns:
- the keyTimes
-
setKeyTimes
public void setKeyTimes(double[] keyTimes)
- Parameters:
keyTimes- the keyTimes to set
-
getAdditive
public int getAdditive()
- Returns:
- the additive
-
setAdditive
public void setAdditive(int additive)
- Parameters:
additive- the additive to set
-
getXformType
public int getXformType()
- Returns:
- the xformType
-
setXformType
public void setXformType(int xformType)
- Parameters:
xformType- the xformType to set
-
-