Class TrackBase

  • Direct Known Subclasses:
    TrackColor, TrackDouble, TrackMotion, TrackPath, TrackTransform

    public abstract class TrackBase
    extends java.lang.Object
    A track holds the animation events for a single parameter of a single SVG element. It also contains the default value for the element, should the user want to see the 'unanimated' value.
    • Field Detail

      • attribName

        protected final java.lang.String attribName
      • attribType

        protected final int attribType
      • parent

        protected final SVGElement parent
        Element we're animating
    • Method Detail

      • getAttribName

        public java.lang.String getAttribName()
      • getAttribType

        public int getAttribType()
      • getValue

        public abstract boolean getValue​(StyleAttribute attrib,
                                         double curTime)
                                  throws SVGException
        Returns a StyleAttribute representing the value of this track at the passed time. If this track does not apply, returns null.
        Returns:
        - True if successful, false if a value could not be obtained
        Throws:
        SVGException