Class EventbaseTimingSpecifier

  • All Implemented Interfaces:
    org.w3c.dom.events.EventListener
    Direct Known Subclasses:
    RepeatTimingSpecifier

    public class EventbaseTimingSpecifier
    extends EventLikeTimingSpecifier
    implements org.w3c.dom.events.EventListener
    A class to handle eventbase SMIL timing specifiers.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected TimedElement eventbase
      The eventbase element.
      protected java.lang.String eventbaseID
      The ID of the eventbase element.
      protected java.lang.String eventName
      The animation name of the event to sync to.
      protected java.lang.String eventNamespaceURI
      The namespace URI of the event to sync to.
      protected org.w3c.dom.events.EventTarget eventTarget
      The eventbase element as an EventTarget.
      protected java.lang.String eventType
      The type of the event to sync to.
    • Constructor Summary

      Constructors 
      Constructor Description
      EventbaseTimingSpecifier​(TimedElement owner, boolean isBegin, float offset, java.lang.String eventbaseID, java.lang.String eventName)
      Creates a new EventbaseTimingSpecifier object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deinitialize()
      Deinitializes this timing specifier by removing any event listeners.
      void handleEvent​(org.w3c.dom.events.Event e)
      Handles an event fired on the eventbase element.
      void initialize()
      Initializes this timing specifier by adding the initial instance time to the owner's instance time list or setting up any event listeners.
      void resolve​(org.w3c.dom.events.Event e)
      Invoked to resolve an event-like timing specifier into an instance time.
      java.lang.String toString()
      Returns a string representation of this timing specifier.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • eventbaseID

        protected java.lang.String eventbaseID
        The ID of the eventbase element.
      • eventbase

        protected TimedElement eventbase
        The eventbase element.
      • eventTarget

        protected org.w3c.dom.events.EventTarget eventTarget
        The eventbase element as an EventTarget.
      • eventNamespaceURI

        protected java.lang.String eventNamespaceURI
        The namespace URI of the event to sync to.
      • eventType

        protected java.lang.String eventType
        The type of the event to sync to.
      • eventName

        protected java.lang.String eventName
        The animation name of the event to sync to.
    • Constructor Detail

      • EventbaseTimingSpecifier

        public EventbaseTimingSpecifier​(TimedElement owner,
                                        boolean isBegin,
                                        float offset,
                                        java.lang.String eventbaseID,
                                        java.lang.String eventName)
        Creates a new EventbaseTimingSpecifier object.
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns a string representation of this timing specifier.
        Overrides:
        toString in class OffsetTimingSpecifier
      • initialize

        public void initialize()
        Initializes this timing specifier by adding the initial instance time to the owner's instance time list or setting up any event listeners.
        Overrides:
        initialize in class OffsetTimingSpecifier
      • deinitialize

        public void deinitialize()
        Deinitializes this timing specifier by removing any event listeners.
        Overrides:
        deinitialize in class TimingSpecifier
      • handleEvent

        public void handleEvent​(org.w3c.dom.events.Event e)
        Handles an event fired on the eventbase element.
        Specified by:
        handleEvent in interface org.w3c.dom.events.EventListener
      • resolve

        public void resolve​(org.w3c.dom.events.Event e)
        Invoked to resolve an event-like timing specifier into an instance time.
        Specified by:
        resolve in class EventLikeTimingSpecifier