Package org.apache.batik.anim.timing
Class Interval
java.lang.Object
org.apache.batik.anim.timing.Interval
A class that represents an interval for a timed element.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected float
The begin time for the interval.protected LinkedList
The list ofInstanceTime
objects that are dependent on the begin time of this Interval.protected InstanceTime
The InstanceTime that defined the begin time of the current interval.protected float
The end time for the interval.protected LinkedList
The list ofInstanceTime
objects that are dependent on the end time of this Interval.protected InstanceTime
The InstanceTime that defined the end time of the current interval. -
Constructor Summary
ConstructorsConstructorDescriptionInterval
(float begin, float end, InstanceTime beginInstanceTime, InstanceTime endInstanceTime) Creates a new Interval. -
Method Summary
Modifier and TypeMethodDescriptionfloat
getBegin()
Returns the begin time of this interval.Returns theInstanceTime
that defined the begin time of this interval.float
getEnd()
Returns the end time of this interval.Returns theInstanceTime
that defined the end time of this interval.toString()
Returns a string representation of this Interval.
-
Field Details
-
begin
protected float beginThe begin time for the interval. -
end
protected float endThe end time for the interval. -
beginInstanceTime
The InstanceTime that defined the begin time of the current interval. -
endInstanceTime
The InstanceTime that defined the end time of the current interval. -
beginDependents
The list ofInstanceTime
objects that are dependent on the begin time of this Interval. -
endDependents
The list ofInstanceTime
objects that are dependent on the end time of this Interval.
-
-
Constructor Details
-
Interval
public Interval(float begin, float end, InstanceTime beginInstanceTime, InstanceTime endInstanceTime) Creates a new Interval.- Parameters:
begin
- the begin time of the Intervalend
- the end time of the IntervalbeginInstanceTime
- theInstanceTime
object that defined the begin time of the IntervalendInstanceTime
- theInstanceTime
object that defined the end time of the Interval
-
-
Method Details
-
toString
Returns a string representation of this Interval. -
getBegin
public float getBegin()Returns the begin time of this interval. -
getEnd
public float getEnd()Returns the end time of this interval. -
getBeginInstanceTime
Returns theInstanceTime
that defined the begin time of this interval. -
getEndInstanceTime
Returns theInstanceTime
that defined the end time of this interval.
-