com.kitfox.svg.animation
Class TimeBase

java.lang.Object
  extended by com.kitfox.svg.animation.TimeBase
Direct Known Subclasses:
TimeCompound, TimeDiscrete, TimeIndefinite, TimeLookup, TimeSum

public abstract class TimeBase
extends java.lang.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.

Author:
Mark McKay, Mark McKay

Constructor Summary
TimeBase()
           
 
Method Summary
abstract  double evalTime()
          Calculates the (greater than or equal to 0) time in seconds this time represents.
protected static TimeBase parseTimeComponent(java.lang.String text)
           
 void setParentElement(AnimationElement ele)
          Some time elements need to refer to the animation element that contains them to evaluate correctly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeBase

public TimeBase()
Method Detail

parseTimeComponent

protected static TimeBase parseTimeComponent(java.lang.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