com.kitfox.svg.animation
Class TimeCompound

java.lang.Object
  extended by com.kitfox.svg.animation.TimeBase
      extended by 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.

Author:
Mark McKay, Mark McKay

Constructor Summary
TimeCompound(java.util.Vector timeBases)
          Creates a new instance of TimeDiscrete
 
Method Summary
 double evalTime()
          Calculates the (greater than or equal to 0) time in seconds this time represents.
 void setParentElement(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeCompound

public TimeCompound(java.util.Vector timeBases)
Creates a new instance of TimeDiscrete

Method Detail

evalTime

public double evalTime()
Description copied from class: TimeBase
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.

Specified by:
evalTime in class TimeBase

setParentElement

public void setParentElement(AnimationElement ele)
Description copied from class: TimeBase
Some time elements need to refer to the animation element that contains them to evaluate correctly

Overrides:
setParentElement in class TimeBase