Package com.kitfox.svg.animation
Class TrackMotion
- java.lang.Object
-
- com.kitfox.svg.animation.TrackBase
-
- com.kitfox.svg.animation.TrackMotion
-
public class TrackMotion extends TrackBase
A track holds the animation events for a single parameter of a single SVG element. It also contains the default value for the element, should the user want to see the 'unanimated' value.
-
-
Field Summary
-
Fields inherited from class com.kitfox.svg.animation.TrackBase
animEvents, attribName, attribType, parent
-
-
Constructor Summary
Constructors Constructor Description TrackMotion(AnimationElement ele)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getValue(StyleAttribute attrib, double curTime)
Returns a StyleAttribute representing the value of this track at the passed time.java.awt.geom.AffineTransform
getValue(java.awt.geom.AffineTransform retVal, double curTime)
-
Methods inherited from class com.kitfox.svg.animation.TrackBase
addElement, getAttribName, getAttribType
-
-
-
-
Constructor Detail
-
TrackMotion
public TrackMotion(AnimationElement ele) throws SVGElementException
- Throws:
SVGElementException
-
-
Method Detail
-
getValue
public boolean getValue(StyleAttribute attrib, double curTime) throws SVGException
Description copied from class:TrackBase
Returns a StyleAttribute representing the value of this track at the passed time. If this track does not apply, returns null.- Specified by:
getValue
in classTrackBase
- Returns:
- - True if successful, false if a value could not be obtained
- Throws:
SVGException
-
getValue
public java.awt.geom.AffineTransform getValue(java.awt.geom.AffineTransform retVal, double curTime) throws SVGException
- Throws:
SVGException
-
-