com.kitfox.svg.animation
Class TrackPath

java.lang.Object
  extended by com.kitfox.svg.animation.TrackBase
      extended by com.kitfox.svg.animation.TrackPath

public class TrackPath
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.

Author:
Mark McKay, Mark McKay

Field Summary
 
Fields inherited from class com.kitfox.svg.animation.TrackBase
attribName, attribType, parent
 
Constructor Summary
TrackPath(AnimationElement ele)
           
 
Method Summary
 java.awt.geom.GeneralPath getValue(double curTime)
           
 boolean getValue(StyleAttribute attrib, double curTime)
          Returns a StyleAttribute representing the value of this track at the passed time.
 
Methods inherited from class com.kitfox.svg.animation.TrackBase
addElement, getAttribName, getAttribType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrackPath

public TrackPath(AnimationElement ele)
          throws SVGElementException
Throws:
SVGElementException
Method Detail

getValue

public boolean getValue(StyleAttribute attrib,
                        double curTime)
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 class TrackBase
Returns:
- True if successful, false if a value could not be obtained

getValue

public java.awt.geom.GeneralPath getValue(double curTime)