com.kitfox.svg.animation
Class AnimateTransform

java.lang.Object
  extended by com.kitfox.svg.SVGElement
      extended by com.kitfox.svg.animation.AnimationElement
          extended by com.kitfox.svg.animation.AnimateBase
              extended by com.kitfox.svg.animation.AnimateXform
                  extended by com.kitfox.svg.animation.AnimateTransform

public class AnimateTransform
extends AnimateXform

Author:
Mark McKay, Mark McKay

Field Summary
protected  int additive
           
static int AT_REPLACE
           
static int AT_SUM
           
protected  double[] keyTimes
           
static int TR_INVALID
           
static int TR_ROTATE
           
static int TR_SCALE
           
static int TR_SKEWX
           
static int TR_SKEWY
           
static int TR_TRANSLATE
           
protected  double[][] values
           
protected  int xformType
           
 
Fields inherited from class com.kitfox.svg.animation.AnimateBase
repeatCount, 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, 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, SVG_NS, trackManager, xmlBase
 
Constructor Summary
AnimateTransform()
          Creates a new instance of Animate
 
Method Summary
 java.awt.geom.AffineTransform eval(java.awt.geom.AffineTransform xform, double interp)
          Evaluates this animation element for the passed interpolation time.
 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 loaded
 
Methods inherited from class com.kitfox.svg.animation.AnimateBase
evalParametric
 
Methods inherited from class com.kitfox.svg.animation.AnimationElement
animationElementToString, evalParametric, getAccumulateType, getAdditiveType, getAttribName, getAttribType, updateTime
 
Methods inherited from class com.kitfox.svg.SVGElement
addAttribute, build, buildPath, getChild, getChildren, getId, getParent, getPath, getPres, getPresAbsolute, getStyle, getStyle, getStyleAbsolute, getXMLBase, hasAttribute, loaderAddChild, loaderAddText, loaderEndElement, nextFloat, parsePathList, parseSingleTransform, parseTransform, removeChild, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

values

protected double[][] values

keyTimes

protected 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

protected 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

protected int xformType
Constructor Detail

AnimateTransform

public AnimateTransform()
Creates a new instance of Animate

Method Detail

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 class AnimateXform
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

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:
eval in class AnimateXform