Package org.apache.batik.anim.timing
Class SyncbaseTimingSpecifier
java.lang.Object
org.apache.batik.anim.timing.TimingSpecifier
org.apache.batik.anim.timing.OffsetTimingSpecifier
org.apache.batik.anim.timing.SyncbaseTimingSpecifier
A class to handle syncbase SMIL timing specifiers.
- Version:
- $Id: SyncbaseTimingSpecifier.java 1802297 2017-07-18 13:58:12Z ssteiner $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HashMap
Map ofInterval
s to anInstanceTime
.protected TimedElement
The syncbase element.protected String
The ID of the syncbase element.protected boolean
Whether this specifier specifies a sync to the begin or the end of the syncbase element.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
ConstructorsConstructorDescriptionSyncbaseTimingSpecifier
(TimedElement owner, boolean isBegin, float offset, String syncbaseID, boolean syncBegin) Creates a new SyncbaseTimingSpecifier object. -
Method Summary
Modifier and TypeMethodDescription(package private) float
handleTimebaseUpdate
(InstanceTime instanceTime, float newTime) Called by anInstanceTime
created by this TimingSpecifier to indicate that its value has changed.void
Initializes this timing specifier by adding the initial instance time to the owner's instance time list or setting up any event listeners.boolean
Returns whether this timing specifier is event-like (i.e., if it is an eventbase, accesskey or a repeat timing specifier).(package private) float
newInterval
(Interval interval) Called by the timebase element when it creates a new Interval.(package private) float
removeInterval
(Interval interval) Called by the timebase element when it deletes an Interval.toString()
Returns a string representation of this timing specifier.Methods inherited from class org.apache.batik.anim.timing.TimingSpecifier
deinitialize, getOwner, isBegin
-
Field Details
-
syncbaseID
The ID of the syncbase element. -
syncbaseElement
The syncbase element. -
syncBegin
protected boolean syncBeginWhether this specifier specifies a sync to the begin or the end of the syncbase element. -
instances
Map ofInterval
s to anInstanceTime
.
-
-
Constructor Details
-
SyncbaseTimingSpecifier
public SyncbaseTimingSpecifier(TimedElement owner, boolean isBegin, float offset, String syncbaseID, boolean syncBegin) Creates a new SyncbaseTimingSpecifier 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
-
isEventCondition
public boolean isEventCondition()Returns whether this timing specifier is event-like (i.e., if it is an eventbase, accesskey or a repeat timing specifier).- Overrides:
isEventCondition
in classOffsetTimingSpecifier
-
newInterval
Called by the timebase element when it creates a new Interval.- Overrides:
newInterval
in classTimingSpecifier
-
removeInterval
Called by the timebase element when it deletes an Interval.- Overrides:
removeInterval
in classTimingSpecifier
-
handleTimebaseUpdate
Called by anInstanceTime
created by this TimingSpecifier to indicate that its value has changed.- Overrides:
handleTimebaseUpdate
in classTimingSpecifier
-