com.kitfox.svg.animation
Class TimeBase
java.lang.Object
com.kitfox.svg.animation.TimeBase
- Direct Known Subclasses:
- TimeCompound, TimeDiscrete, TimeIndefinite, TimeLookup, TimeSum
public abstract class TimeBase
- extends Object
SVG has a complicated way of specifying time. Potentially, a time could
be represened as a summation of discrete times and times of other animation
events. This provides a root for the many elements we will need to define
time.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeBase
public TimeBase()
parseTimeComponent
protected static TimeBase parseTimeComponent(String text)
evalTime
public abstract double evalTime()
- Calculates the (greater than or equal to 0) time in seconds this
time represents. If the time cannot be determined, returns
Double.NaN. If this represents an infinte amount of time, returns
Double.POSITIVE_INFINITY.
setParentElement
public void setParentElement(AnimationElement ele)
- Some time elements need to refer to the animation element that contains
them to evaluate correctly