Class SVGAnimationEngine.AnimationRoot

    • Constructor Detail

      • AnimationRoot

        public AnimationRoot()
        Creates a new AnimationRoot object.
    • Method Detail

      • getEventNamespaceURI

        protected java.lang.String getEventNamespaceURI​(java.lang.String eventName)
        Returns the namespace URI of the event that corresponds to the given animation event name.
        Specified by:
        getEventNamespaceURI in class TimedDocumentRoot
      • getEventType

        protected java.lang.String getEventType​(java.lang.String eventName)
        Returns the type of the event that corresponds to the given animation event name.
        Specified by:
        getEventType in class TimedDocumentRoot
      • getRepeatEventName

        protected java.lang.String getRepeatEventName()
        Returns the name of the repeat event.
        Specified by:
        getRepeatEventName in class TimedDocumentRoot
        Returns:
        "repeatEvent" for SVG
      • fireTimeEvent

        protected void fireTimeEvent​(java.lang.String eventType,
                                     java.util.Calendar time,
                                     int detail)
        Fires a TimeEvent of the given type on this element.
        Specified by:
        fireTimeEvent in class TimedElement
        Parameters:
        eventType - the type of TimeEvent ("beginEvent", "endEvent" or "repeatEvent"/"repeat").
        time - the timestamp of the event object
      • toActive

        protected void toActive​(float begin)
        Invoked to indicate this timed element became active at the specified time.
        Specified by:
        toActive in class TimedElement
        Parameters:
        begin - the time the element became active, in document simple time
      • toInactive

        protected void toInactive​(boolean stillActive,
                                  boolean isFrozen)
        Invoked to indicate that this timed element became inactive.
        Specified by:
        toInactive in class TimedElement
        Parameters:
        stillActive - if true, indicates that the element is still actually active, but between the end of the computed repeat duration and the end of the interval
        isFrozen - whether the element is frozen or not
      • removeFill

        protected void removeFill()
        Invoked to indicate that this timed element has had its fill removed.
        Specified by:
        removeFill in class TimedElement
      • sampledAt

        protected void sampledAt​(float simpleTime,
                                 float simpleDur,
                                 int repeatIteration)
        Invoked to indicate that this timed element has been sampled at the given time.
        Specified by:
        sampledAt in class TimedElement
        Parameters:
        simpleTime - the sample time in local simple time
        simpleDur - the simple duration of the element
        repeatIteration - the repeat iteration during which the element was sampled
      • sampledLastValue

        protected void sampledLastValue​(int repeatIteration)
        Invoked to indicate that this timed element has been sampled at the end of its active time, at an integer multiple of the simple duration. This is the "last" value that will be used for filling, which cannot be sampled normally.
        Specified by:
        sampledLastValue in class TimedElement
      • getElement

        public org.w3c.dom.Element getElement()
        Returns the DOM element that corresponds to this timed element, if such a DOM element exists.
        Specified by:
        getElement in class TimedElement
      • isBefore

        public boolean isBefore​(TimedElement other)
        Returns whether this timed element comes before the given timed element in document order.
        Specified by:
        isBefore in class TimedElement
      • currentIntervalWillUpdate

        protected void currentIntervalWillUpdate()
        Invoked by timed elements in this document to indicate that the current interval will be re-evaluated at the next sample.
        Overrides:
        currentIntervalWillUpdate in class TimedDocumentRoot