Package org.apache.batik.anim.timing
Class InstanceTime
java.lang.Object
org.apache.batik.anim.timing.InstanceTime
- All Implemented Interfaces:
Comparable
A class that represents an instance time created from a timing
specification.
- Version:
- $Id: InstanceTime.java 1802297 2017-07-18 13:58:12Z ssteiner $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Whether this InstanceTime should be removed from an element's begin or end instance time lists upon reset.protected TimingSpecifier
TheTimingSpecifier
that created this InstanceTime.protected float
The time. -
Constructor Summary
ConstructorsConstructorDescriptionInstanceTime
(TimingSpecifier creator, float time, boolean clearOnReset) Creates a new InstanceTime. -
Method Summary
Modifier and TypeMethodDescriptionint
Compares this InstanceTime with another.(package private) float
dependentUpdate
(float newTime) Called by the dependent Interval to indicate that its time has changed.boolean
Returns whether the InstanceTime should be removed from the element's begin or end instance time list when it is reset.float
getTime()
Returns the time of this instance time.toString()
Returns a string representation of this InstanceTime.
-
Field Details
-
time
protected float timeThe time. -
creator
TheTimingSpecifier
that created this InstanceTime. -
clearOnReset
protected boolean clearOnResetWhether this InstanceTime should be removed from an element's begin or end instance time lists upon reset.
-
-
Constructor Details
-
InstanceTime
Creates a new InstanceTime.- Parameters:
creator
- the TimingSpecifier that created this InstanceTimetime
- the new time, in parent simple timeclearOnReset
- whether this InstanceTime should be removed from an instance time list upon element reset
-
-
Method Details
-
getClearOnReset
public boolean getClearOnReset()Returns whether the InstanceTime should be removed from the element's begin or end instance time list when it is reset. -
getTime
public float getTime()Returns the time of this instance time. -
dependentUpdate
float dependentUpdate(float newTime) Called by the dependent Interval to indicate that its time has changed.- Parameters:
newTime
- the new time, in parent simple time
-
toString
Returns a string representation of this InstanceTime. -
compareTo
Compares this InstanceTime with another.- Specified by:
compareTo
in interfaceComparable
-