Class TimeBase

  • Direct Known Subclasses:
    TimeCompound, TimeDiscrete, TimeIndefinite, TimeLookup, TimeSum

    public abstract class TimeBase
    extends java.lang.Object
    SVG 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.Matcher matchIndefinite  
      (package private) static java.util.regex.Matcher matchUnitTime  
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeBase()  
    • Field Detail

      • matchIndefinite

        static final java.util.regex.Matcher matchIndefinite
      • matchUnitTime

        static final java.util.regex.Matcher matchUnitTime
    • Constructor Detail

      • TimeBase

        public TimeBase()
    • 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