Class AnimationElement

    • Constructor Detail

      • AnimationElement

        public AnimationElement()
        Creates a new instance of AnimateEle
    • Method Detail

      • animationElementToString

        public static java.lang.String animationElementToString​(int attrValue)
      • loaderStartElement

        public void loaderStartElement​(SVGLoaderHelper helper,
                                       org.xml.sax.Attributes attrs,
                                       SVGElement parent)
                                throws org.xml.sax.SAXException
        Description copied from class: SVGElement
        Called during SAX load process to notify that this tag has begun the process of being loaded
        Overrides:
        loaderStartElement in class SVGElement
        Parameters:
        helper - - An object passed to all SVG elements involved in this build process to aid in sharing information.
        attrs - - Attributes of this tag
        Throws:
        org.xml.sax.SAXException
      • getAttribName

        public java.lang.String getAttribName()
      • getAttribType

        public int getAttribType()
      • getAdditiveType

        public int getAdditiveType()
      • getAccumulateType

        public int getAccumulateType()
      • evalParametric

        public void evalParametric​(AnimationTimeEval state,
                                   double curTime)
      • evalParametric

        protected void evalParametric​(AnimationTimeEval state,
                                      double curTime,
                                      double repeatCount,
                                      double repeatDur)
        Compares current time to start and end times and determines what degree of time interpolation this track currently represents. Returns Float.NaN if this track cannot be evaluated at the passed time (ie, it is before or past the end of the track, or it depends upon an unknown event)
        Parameters:
        state - - A structure that will be filled with information regarding the applicability of this animatoin element at the passed time.
        curTime - - Current time in seconds
        repeatCount - - Optional number of repetitions of length 'dur' to do. Set to Double.NaN to not consider this in the calculation.
        repeatDur - - Optional amoun tof time to repeat the animaiton. Set to Double.NaN to not consider this in the calculation.
      • evalStartTime

        double evalStartTime()
      • evalDurTime

        double evalDurTime()
      • evalEndTime

        double evalEndTime()
        Evaluates the ending time of this element. Returns 0 if not specified.
        See Also:
        hasEndTime()
      • hasEndTime

        boolean hasEndTime()
        Checks to see if an end time has been specified for this element.
      • updateTime

        public boolean updateTime​(double curTime)
        Updates all attributes in this diagram associated with a time event. Ie, all attributes with track information.
        Specified by:
        updateTime in class SVGElement
        Returns:
        - true if this node has changed state as a result of the time update
      • getBeginTime

        public TimeBase getBeginTime()
        Returns:
        the beginTime
      • setBeginTime

        public void setBeginTime​(TimeBase beginTime)
        Parameters:
        beginTime - the beginTime to set
      • getDurTime

        public TimeBase getDurTime()
        Returns:
        the durTime
      • setDurTime

        public void setDurTime​(TimeBase durTime)
        Parameters:
        durTime - the durTime to set
      • getEndTime

        public TimeBase getEndTime()
        Returns:
        the endTime
      • setEndTime

        public void setEndTime​(TimeBase endTime)
        Parameters:
        endTime - the endTime to set
      • getFillType

        public int getFillType()
        Returns:
        the fillType
      • setFillType

        public void setFillType​(int fillType)
        Parameters:
        fillType - the fillType to set
      • setAdditiveType

        public void setAdditiveType​(int additiveType)
        Parameters:
        additiveType - the additiveType to set
      • setAccumulateType

        public void setAccumulateType​(int accumulateType)
        Parameters:
        accumulateType - the accumulateType to set