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 floatThe begin time for the interval.protected LinkedListThe list ofInstanceTimeobjects that are dependent on the begin time of this Interval.protected InstanceTimeThe InstanceTime that defined the begin time of the current interval.protected floatThe end time for the interval.protected LinkedListThe list ofInstanceTimeobjects that are dependent on the end time of this Interval.protected InstanceTimeThe 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 TypeMethodDescriptionfloatgetBegin()Returns the begin time of this interval.Returns theInstanceTimethat defined the begin time of this interval.floatgetEnd()Returns the end time of this interval.Returns theInstanceTimethat 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 ofInstanceTimeobjects that are dependent on the begin time of this Interval. -
endDependents
The list ofInstanceTimeobjects 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- theInstanceTimeobject that defined the begin time of the IntervalendInstanceTime- theInstanceTimeobject that defined the end time of the Interval
-
-
Method Details
-
toString
-
getBegin
public float getBegin()Returns the begin time of this interval. -
getEnd
public float getEnd()Returns the end time of this interval. -
getBeginInstanceTime
Returns theInstanceTimethat defined the begin time of this interval. -
getEndInstanceTime
Returns theInstanceTimethat defined the end time of this interval.
-