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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanWhether this InstanceTime should be removed from an element's begin or end instance time lists upon reset.protected TimingSpecifierTheTimingSpecifierthat created this InstanceTime.protected floatThe time. -
Constructor Summary
ConstructorsConstructorDescriptionInstanceTime(TimingSpecifier creator, float time, boolean clearOnReset) Creates a new InstanceTime. -
Method Summary
Modifier and TypeMethodDescriptionintCompares this InstanceTime with another.booleanReturns whether the InstanceTime should be removed from the element's begin or end instance time list when it is reset.floatgetTime()Returns the time of this instance time.toString()Returns a string representation of this InstanceTime.
-
Field Details
-
time
protected float timeThe time. -
creator
TheTimingSpecifierthat 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
-
compareTo
Compares this InstanceTime with another.- Specified by:
compareToin interfaceComparable
-