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
-
public class SyncbaseTimingSpecifier extends OffsetTimingSpecifier
A class to handle syncbase SMIL timing specifiers.- Version:
- $Id: SyncbaseTimingSpecifier.java 1802297 2017-07-18 13:58:12Z ssteiner $
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.HashMapinstancesMap ofIntervals to anInstanceTime.protected TimedElementsyncbaseElementThe syncbase element.protected java.lang.StringsyncbaseIDThe ID of the syncbase element.protected booleansyncBeginWhether 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
Constructors Constructor Description SyncbaseTimingSpecifier(TimedElement owner, boolean isBegin, float offset, java.lang.String syncbaseID, boolean syncBegin)Creates a new SyncbaseTimingSpecifier object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) floathandleTimebaseUpdate(InstanceTime instanceTime, float newTime)Called by anInstanceTimecreated by this TimingSpecifier to indicate that its value has changed.voidinitialize()Initializes this timing specifier by adding the initial instance time to the owner's instance time list or setting up any event listeners.booleanisEventCondition()Returns whether this timing specifier is event-like (i.e., if it is an eventbase, accesskey or a repeat timing specifier).(package private) floatnewInterval(Interval interval)Called by the timebase element when it creates a new Interval.(package private) floatremoveInterval(Interval interval)Called by the timebase element when it deletes an Interval.java.lang.StringtoString()Returns a string representation of this timing specifier.-
Methods inherited from class org.apache.batik.anim.timing.TimingSpecifier
deinitialize, getOwner, isBegin
-
-
-
-
Field Detail
-
syncbaseID
protected java.lang.String syncbaseID
The ID of the syncbase element.
-
syncbaseElement
protected TimedElement syncbaseElement
The syncbase element.
-
syncBegin
protected boolean syncBegin
Whether this specifier specifies a sync to the begin or the end of the syncbase element.
-
instances
protected java.util.HashMap instances
Map ofIntervals to anInstanceTime.
-
-
Constructor Detail
-
SyncbaseTimingSpecifier
public SyncbaseTimingSpecifier(TimedElement owner, boolean isBegin, float offset, java.lang.String syncbaseID, boolean syncBegin)
Creates a new SyncbaseTimingSpecifier object.
-
-
Method Detail
-
toString
public java.lang.String 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
-
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:
isEventConditionin classOffsetTimingSpecifier
-
newInterval
float newInterval(Interval interval)
Called by the timebase element when it creates a new Interval.- Overrides:
newIntervalin classTimingSpecifier
-
removeInterval
float removeInterval(Interval interval)
Called by the timebase element when it deletes an Interval.- Overrides:
removeIntervalin classTimingSpecifier
-
handleTimebaseUpdate
float handleTimebaseUpdate(InstanceTime instanceTime, float newTime)
Called by anInstanceTimecreated by this TimingSpecifier to indicate that its value has changed.- Overrides:
handleTimebaseUpdatein classTimingSpecifier
-
-