Package org.apache.batik.anim.timing
Class AccesskeyTimingSpecifier
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.AccesskeyTimingSpecifier
- All Implemented Interfaces:
EventListener
A class to handle SMIL access key timing specifiers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected char
The accesskey.protected boolean
Whether this access key specifier uses SVG 1.2 syntax.protected String
The DOM 3 key name for SVG 1.2 access key specifiers.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
ConstructorsConstructorDescriptionAccesskeyTimingSpecifier
(TimedElement owner, boolean isBegin, float offset, char accesskey) Creates a new AccesskeyTimingSpecifier object using SVG 1.1 or SMIL syntax.AccesskeyTimingSpecifier
(TimedElement owner, boolean isBegin, float offset, String keyName) Creates a new AccesskeyTimingSpecifier object using SVG 1.2 syntax. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deinitializes this timing specifier by removing any event listeners.void
handleEvent
(Event e) Handles key events fired by 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
-
accesskey
protected char accesskeyThe accesskey. -
isSVG12AccessKey
protected boolean isSVG12AccessKeyWhether this access key specifier uses SVG 1.2 syntax. -
keyName
The DOM 3 key name for SVG 1.2 access key specifiers.
-
-
Constructor Details
-
AccesskeyTimingSpecifier
Creates a new AccesskeyTimingSpecifier object using SVG 1.1 or SMIL syntax. -
AccesskeyTimingSpecifier
Creates a new AccesskeyTimingSpecifier object using SVG 1.2 syntax.
-
-
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 key events fired by 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
-