Package org.apache.batik.anim.timing
Class Interval
- java.lang.Object
-
- org.apache.batik.anim.timing.Interval
-
public class Interval extends java.lang.ObjectA class that represents an interval for a timed element.
-
-
Field Summary
Fields Modifier and Type Field Description protected floatbeginThe begin time for the interval.protected java.util.LinkedListbeginDependentsThe list ofInstanceTimeobjects that are dependent on the begin time of this Interval.protected InstanceTimebeginInstanceTimeThe InstanceTime that defined the begin time of the current interval.protected floatendThe end time for the interval.protected java.util.LinkedListendDependentsThe list ofInstanceTimeobjects that are dependent on the end time of this Interval.protected InstanceTimeendInstanceTimeThe InstanceTime that defined the end time of the current interval.
-
Constructor Summary
Constructors Constructor Description Interval(float begin, float end, InstanceTime beginInstanceTime, InstanceTime endInstanceTime)Creates a new Interval.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetBegin()Returns the begin time of this interval.InstanceTimegetBeginInstanceTime()Returns theInstanceTimethat defined the begin time of this interval.floatgetEnd()Returns the end time of this interval.InstanceTimegetEndInstanceTime()Returns theInstanceTimethat defined the end time of this interval.java.lang.StringtoString()Returns a string representation of this Interval.
-
-
-
Field Detail
-
begin
protected float begin
The begin time for the interval.
-
end
protected float end
The end time for the interval.
-
beginInstanceTime
protected InstanceTime beginInstanceTime
The InstanceTime that defined the begin time of the current interval.
-
endInstanceTime
protected InstanceTime endInstanceTime
The InstanceTime that defined the end time of the current interval.
-
beginDependents
protected java.util.LinkedList beginDependents
The list ofInstanceTimeobjects that are dependent on the begin time of this Interval.
-
endDependents
protected java.util.LinkedList endDependents
The list ofInstanceTimeobjects that are dependent on the end time of this Interval.
-
-
Constructor Detail
-
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 Detail
-
toString
public java.lang.String toString()
Returns a string representation of this Interval.- Overrides:
toStringin classjava.lang.Object
-
getBegin
public float getBegin()
Returns the begin time of this interval.
-
getEnd
public float getEnd()
Returns the end time of this interval.
-
getBeginInstanceTime
public InstanceTime getBeginInstanceTime()
Returns theInstanceTimethat defined the begin time of this interval.
-
getEndInstanceTime
public InstanceTime getEndInstanceTime()
Returns theInstanceTimethat defined the end time of this interval.
-
-