Package org.apache.batik.anim.timing
Class EventbaseTimingSpecifier
java.lang.Object
org.apache.batik.anim.timing.TimingSpecifier
org.apache.batik.anim.timing.OffsetTimingSpecifier
org.apache.batik.anim.timing.EventLikeTimingSpecifier
org.apache.batik.anim.timing.EventbaseTimingSpecifier
- All Implemented Interfaces:
EventListener
- Direct Known Subclasses:
RepeatTimingSpecifier
A class to handle eventbase SMIL timing specifiers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TimedElement
The eventbase element.protected String
The ID of the eventbase element.protected String
The animation name of the event to sync to.protected String
The namespace URI of the event to sync to.protected EventTarget
The eventbase element as anEventTarget
.protected String
The type of the event to sync to.Fields inherited from class org.apache.batik.anim.timing.OffsetTimingSpecifier
offset
Fields inherited from class org.apache.batik.anim.timing.TimingSpecifier
isBegin, owner
-
Constructor Summary
ConstructorsConstructorDescriptionEventbaseTimingSpecifier
(TimedElement owner, boolean isBegin, float offset, String eventbaseID, String eventName) Creates a new EventbaseTimingSpecifier object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deinitializes this timing specifier by removing any event listeners.void
handleEvent
(Event e) Handles an event fired on the eventbase element.void
Initializes this timing specifier by adding the initial instance time to the owner's instance time list or setting up any event listeners.void
Invoked to resolve an event-like timing specifier into an instance time.toString()
Returns a string representation of this timing specifier.Methods inherited from class org.apache.batik.anim.timing.EventLikeTimingSpecifier
isEventCondition
Methods inherited from class org.apache.batik.anim.timing.TimingSpecifier
getOwner, isBegin
-
Field Details
-
eventbaseID
The ID of the eventbase element. -
eventbase
The eventbase element. -
eventTarget
The eventbase element as anEventTarget
. -
eventNamespaceURI
The namespace URI of the event to sync to. -
eventType
The type of the event to sync to. -
eventName
The animation name of the event to sync to.
-
-
Constructor Details
-
EventbaseTimingSpecifier
public EventbaseTimingSpecifier(TimedElement owner, boolean isBegin, float offset, String eventbaseID, String eventName) Creates a new EventbaseTimingSpecifier object.
-
-
Method Details
-
toString
Returns a string representation of this timing specifier.- Overrides:
toString
in classOffsetTimingSpecifier
-
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 classOffsetTimingSpecifier
-
deinitialize
public void deinitialize()Deinitializes this timing specifier by removing any event listeners.- Overrides:
deinitialize
in classTimingSpecifier
-
handleEvent
Handles an event fired on the eventbase element.- Specified by:
handleEvent
in interfaceEventListener
-
resolve
Invoked to resolve an event-like timing specifier into an instance time.- Specified by:
resolve
in classEventLikeTimingSpecifier
-