org.apache.batik.anim.timing

Class EventbaseTimingSpecifier

public class EventbaseTimingSpecifier extends EventLikeTimingSpecifier implements EventListener

A class to handle eventbase SMIL timing specifiers.
Field Summary
protected TimedElementeventbase
The eventbase element.
protected StringeventbaseID
The ID of the eventbase element.
protected StringeventName
The animation name of the event to sync to.
protected StringeventNamespaceURI
The namespace URI of the event to sync to.
protected EventTargeteventTarget
The eventbase element as an EventTarget.
protected StringeventType
The type of the event to sync to.
Constructor Summary
EventbaseTimingSpecifier(TimedElement owner, boolean isBegin, float offset, String eventbaseID, String eventName)
Creates a new EventbaseTimingSpecifier object.
Method Summary
voiddeinitialize()
Deinitializes this timing specifier by removing any event listeners.
voidhandleEvent(Event e)
Handles an event fired on the eventbase element.
voidinitialize()
Initializes this timing specifier by adding the initial instance time to the owner's instance time list or setting up any event listeners.
voidresolve(Event e)
Invoked to resolve an event-like timing specifier into an instance time.
StringtoString()
Returns a string representation of this timing specifier.

Field Detail

eventbase

protected TimedElement eventbase
The eventbase element.

eventbaseID

protected String eventbaseID
The ID of the eventbase element.

eventName

protected String eventName
The animation name of the event to sync to.

eventNamespaceURI

protected String eventNamespaceURI
The namespace URI of the event to sync to.

eventTarget

protected EventTarget eventTarget
The eventbase element as an EventTarget.

eventType

protected String eventType
The type of the event to sync to.

Constructor Detail

EventbaseTimingSpecifier

public EventbaseTimingSpecifier(TimedElement owner, boolean isBegin, float offset, String eventbaseID, String eventName)
Creates a new EventbaseTimingSpecifier object.

Method Detail

deinitialize

public void deinitialize()
Deinitializes this timing specifier by removing any event listeners.

handleEvent

public void handleEvent(Event e)
Handles an event fired on the eventbase element.

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.

resolve

public void resolve(Event e)
Invoked to resolve an event-like timing specifier into an instance time.

toString

public String toString()
Returns a string representation of this timing specifier.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.