Package com.kitfox.svg.animation
Class TimeCompound
- java.lang.Object
-
- com.kitfox.svg.animation.TimeBase
-
- com.kitfox.svg.animation.TimeCompound
-
public class TimeCompound extends TimeBase
This represents a summation of other time elements. It is used for complex timing events with offsets.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<TimeBase>componentTimesThis is a list of times.private AnimationElementparent(package private) static java.util.regex.PatternpatPlus-
Fields inherited from class com.kitfox.svg.animation.TimeBase
matchIndefinite, matchUnitTime
-
-
Constructor Summary
Constructors Constructor Description TimeCompound(java.util.List<TimeBase> timeBases)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
-
patPlus
static final java.util.regex.Pattern patPlus
-
componentTimes
final java.util.List<TimeBase> componentTimes
This is a list of times. This element's time is calculated as the greatest member that is less than the current time.
-
parent
private AnimationElement parent
-
-
Constructor Detail
-
TimeCompound
public TimeCompound(java.util.List<TimeBase> timeBases)
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
-
-