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 TimedElementThe eventbase element.protected StringThe ID of the eventbase element.protected StringThe animation name of the event to sync to.protected StringThe namespace URI of the event to sync to.protected EventTargetThe eventbase element as anEventTarget.protected StringThe type of the event to sync to.Fields inherited from class OffsetTimingSpecifier
offsetFields inherited from class 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 TypeMethodDescriptionvoidDeinitializes this timing specifier by removing any event listeners.voidhandleEvent(Event e) Handles an event fired on the eventbase element.voidInitializes this timing specifier by adding the initial instance time to the owner's instance time list or setting up any event listeners.voidInvoked to resolve an event-like timing specifier into an instance time.toString()Returns a string representation of this timing specifier.Methods inherited from class EventLikeTimingSpecifier
isEventConditionMethods inherited from class 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:
toStringin 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:
initializein classOffsetTimingSpecifier
-
deinitialize
public void deinitialize()Deinitializes this timing specifier by removing any event listeners.- Overrides:
deinitializein classTimingSpecifier
-
handleEvent
Handles an event fired on the eventbase element.- Specified by:
handleEventin interfaceEventListener
-
resolve
Invoked to resolve an event-like timing specifier into an instance time.- Specified by:
resolvein classEventLikeTimingSpecifier
-