Class SVGAnimationElementBridge.SVGTimedElement

java.lang.Object
org.apache.batik.anim.timing.TimedElement
org.apache.batik.bridge.SVGAnimationElementBridge.SVGTimedElement
All Implemented Interfaces:
SMILConstants
Enclosing class:
SVGAnimationElementBridge

protected class SVGAnimationElementBridge.SVGTimedElement extends TimedElement
A TimedElement class for SVG animation elements.
  • Constructor Details

    • SVGTimedElement

      protected SVGTimedElement()
  • Method Details

    • getElement

      public Element getElement()
      Returns the DOM element this timed element is for.
      Specified by:
      getElement in class TimedElement
    • fireTimeEvent

      protected void fireTimeEvent(String eventType, 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").
      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
    • getTimedElementById

      protected TimedElement getTimedElementById(String id)
      Returns the timed element with the given ID.
      Specified by:
      getTimedElementById in class TimedElement
    • getEventTargetById

      protected EventTarget getEventTargetById(String id)
      Returns the event target with the given ID.
      Specified by:
      getEventTargetById in class TimedElement
    • getRootEventTarget

      protected EventTarget getRootEventTarget()
      Returns the event target that should be listened to for access key events.
      Specified by:
      getRootEventTarget in class TimedElement
    • getAnimationEventTarget

      protected EventTarget getAnimationEventTarget()
      Returns the target of this animation as an EventTarget. Used for eventbase timing specifiers where the element ID is omitted.
      Specified by:
      getAnimationEventTarget 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
    • toString

      public String toString()
      Returns a string representation of this animation.
      Overrides:
      toString in class Object
    • isConstantAnimation

      protected boolean isConstantAnimation()
      Returns whether this timed element is for a constant animation (i.e., a 'set' animation.
      Specified by:
      isConstantAnimation in class TimedElement