Class TimeCompound


  • public class TimeCompound
    extends TimeBase
    This represents a summation of other time elements. It is used for complex timing events with offsets.
    • 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.
    • 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: 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