Package com.kitfox.svg.animation
Class TimeLookup
- java.lang.Object
-
- com.kitfox.svg.animation.TimeBase
-
- com.kitfox.svg.animation.TimeLookup
-
public class TimeLookup extends TimeBase
This is a time that represents a specific number of milliseconds
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.StringeventEvent to evalutae on this node(package private) java.lang.StringnodeNode this lookup acts upon(package private) java.lang.StringparamListOptional parameter used by some eventsprivate AnimationElementparentThis time can only be resolved in relation to it's parent-
Fields inherited from class com.kitfox.svg.animation.TimeBase
matchIndefinite, matchUnitTime
-
-
Constructor Summary
Constructors Constructor Description TimeLookup(AnimationElement parent, java.lang.String node, java.lang.String event, java.lang.String paramList)Creates a new instance of TimeDiscrete
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleevalTime()Calculates the (greater than or equal to 0) time in seconds this time represents.voidsetParentElement(AnimationElement ele)Some time elements need to refer to the animation element that contains them to evaluate correctly-
Methods inherited from class com.kitfox.svg.animation.TimeBase
parseTimeComponent
-
-
-
-
Field Detail
-
parent
private AnimationElement parent
This time can only be resolved in relation to it's parent
-
node
java.lang.String node
Node this lookup acts upon
-
event
java.lang.String event
Event to evalutae on this node
-
paramList
java.lang.String paramList
Optional parameter used by some events
-
-
Constructor Detail
-
TimeLookup
public TimeLookup(AnimationElement parent, java.lang.String node, java.lang.String event, java.lang.String paramList)
Creates a new instance of TimeDiscrete
-
-
Method Detail
-
evalTime
public double evalTime()
Description copied from class:TimeBaseCalculates 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)
Description copied from class:TimeBaseSome time elements need to refer to the animation element that contains them to evaluate correctly- Overrides:
setParentElementin classTimeBase
-
-