Package org.apache.batik.anim.timing
Class TimingSpecifier
java.lang.Object
org.apache.batik.anim.timing.TimingSpecifier
- Direct Known Subclasses:
IndefiniteTimingSpecifier
,MediaMarkerTimingSpecifier
,OffsetTimingSpecifier
,WallclockTimingSpecifier
An abstract class for SMIL timing specifiers.
- Version:
- $Id: TimingSpecifier.java 1733416 2016-03-03 07:07:13Z gadams $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Whether this timing specifier is for a begin time or an end time.protected TimedElement
The element that owns this timing specifier. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TimingSpecifier
(TimedElement owner, boolean isBegin) Creates a new TimingSpecifier object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deinitializes this timing specifier by removing any event listeners.getOwner()
Returns the element that owns this timing specifier.(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
isBegin()
Returns true if this timing specifier is in the owner's begin list, false if it is in the owner's end list.abstract 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.
-
Field Details
-
owner
The element that owns this timing specifier. -
isBegin
protected boolean isBeginWhether this timing specifier is for a begin time or an end time.
-
-
Constructor Details
-
TimingSpecifier
Creates a new TimingSpecifier object.
-
-
Method Details
-
getOwner
Returns the element that owns this timing specifier. -
isBegin
public boolean isBegin()Returns true if this timing specifier is in the owner's begin list, false if it is in the owner's end list. -
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. This should be overriden in descendant classes. -
deinitialize
public void deinitialize()Deinitializes this timing specifier by removing any event listeners. This should be overriden in descendant classes. -
isEventCondition
public abstract boolean isEventCondition()Returns whether this timing specifier is event-like (i.e., if it is an eventbase, accesskey or a repeat timing specifier). -
newInterval
Called by the timebase element when it creates a new Interval. This should be overridden in descendant classes that generate time instances based on the interval of a timebase element. -
removeInterval
Called by the timebase element when it deletes an Interval. This should be overridden in descendant classes that generate time instances based on the interval of a timebase element. -
handleTimebaseUpdate
Called by anInstanceTime
created by this TimingSpecifier to indicate that its value has changed. This should be overriden in descendant classes that generate time instances based on the interval of a timebase element.
-