java.lang.Object
io.sf.carte.echosvg.anim.timing.InstanceTime
- All Implemented Interfaces:
Comparable<InstanceTime>
A class that represents an instance time created from a timing specification.
-
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.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. -
toString
Returns a string representation of this InstanceTime. -
compareTo
Compares this InstanceTime with another.- Specified by:
compareTo
in interfaceComparable<InstanceTime>
-