org.apache.batik.bridge
protected class SVGAnimationEngine.AnimationRoot extends TimedDocumentRoot
Constructor Summary | |
---|---|
AnimationRoot()
Creates a new AnimationRoot object. |
Method Summary | |
---|---|
protected void | currentIntervalWillUpdate()
Invoked by timed elements in this document to indicate that the
current interval will be re-evaluated at the next sample. |
protected void | fireTimeEvent(String eventType, Calendar time, int detail)
Fires a TimeEvent of the given type on this element. |
protected EventTarget | getAnimationEventTarget()
Returns the target of this animation as an EventTarget. |
Element | getElement()
Returns the DOM element that corresponds to this timed element, if
such a DOM element exists. |
protected String | getEventNamespaceURI(String eventName)
Returns the namespace URI of the event that corresponds to the given
animation event name. |
protected EventTarget | getEventTargetById(String id)
Returns the event target with the given ID. |
protected String | getEventType(String eventName)
Returns the type of the event that corresponds to the given
animation event name. |
protected String | getRepeatEventName()
Returns the name of the repeat event. |
protected EventTarget | getRootEventTarget()
Returns the event target that should be listened to for
access key events. |
protected TimedElement | getTimedElementById(String id)
Returns the timed element with the given ID. |
boolean | isBefore(TimedElement other)
Returns whether this timed element comes before the given timed
element in document order. |
protected void | removeFill()
Invoked to indicate that this timed element has had its fill removed. |
protected void | sampledAt(float simpleTime, float simpleDur, int repeatIteration)
Invoked to indicate that this timed element has been sampled at the
given time. |
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. |
protected void | toActive(float begin)
Invoked to indicate this timed element became active at the
specified time. |
protected void | toInactive(boolean stillActive, boolean isFrozen)
Invoked to indicate that this timed element became inactive. |
Parameters: eventType the type of TimeEvent ("beginEvent", "endEvent" or "repeatEvent"/"repeat"). time the timestamp of the event object
Returns: "repeatEvent" for SVG
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
Parameters: begin the time the element became active, in document simple time
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