Package 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 java.lang.ObjectSVG 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.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.util.regex.MatchermatchIndefinite(package private) static java.util.regex.MatchermatchUnitTime
-
Constructor Summary
Constructors Constructor Description TimeBase()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract doubleevalTime()Calculates the (greater than or equal to 0) time in seconds this time represents.protected static TimeBaseparseTimeComponent(java.lang.String text)voidsetParentElement(AnimationElement ele)Some time elements need to refer to the animation element that contains them to evaluate correctly
-
-
-
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
-
-