org.apache.batik.anim.timing

Class Interval

public class Interval extends Object

A class that represents an interval for a timed element.
Field Summary
protected floatbegin
The begin time for the interval.
protected LinkedListbeginDependents
The list of InstanceTime objects that are dependent on the begin time of this Interval.
protected InstanceTimebeginInstanceTime
The InstanceTime that defined the begin time of the current interval.
protected floatend
The end time for the interval.
protected LinkedListendDependents
The list of InstanceTime objects that are dependent on the end time of this Interval.
protected InstanceTimeendInstanceTime
The InstanceTime that defined the end time of the current interval.
Constructor Summary
Interval(float begin, float end, InstanceTime beginInstanceTime, InstanceTime endInstanceTime)
Creates a new Interval.
Method Summary
floatgetBegin()
Returns the begin time of this interval.
InstanceTimegetBeginInstanceTime()
Returns the InstanceTime that defined the begin time of this interval.
floatgetEnd()
Returns the end time of this interval.
InstanceTimegetEndInstanceTime()
Returns the InstanceTime that defined the end time of this interval.
StringtoString()
Returns a string representation of this Interval.

Field Detail

begin

protected float begin
The begin time for the interval.

beginDependents

protected LinkedList beginDependents
The list of InstanceTime objects that are dependent on the begin time of this Interval.

beginInstanceTime

protected InstanceTime beginInstanceTime
The InstanceTime that defined the begin time of the current interval.

end

protected float end
The end time for the interval.

endDependents

protected LinkedList endDependents
The list of InstanceTime objects that are dependent on the end time of this Interval.

endInstanceTime

protected InstanceTime endInstanceTime
The InstanceTime that defined the end time of the current 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 Interval end the end time of the Interval beginInstanceTime the InstanceTime object that defined the begin time of the Interval endInstanceTime the InstanceTime object that defined the end time of the Interval

Method Detail

getBegin

public float getBegin()
Returns the begin time of this interval.

getBeginInstanceTime

public InstanceTime getBeginInstanceTime()
Returns the InstanceTime that defined the begin time of this interval.

getEnd

public float getEnd()
Returns the end time of this interval.

getEndInstanceTime

public InstanceTime getEndInstanceTime()
Returns the InstanceTime that defined the end time of this interval.

toString

public String toString()
Returns a string representation of this Interval.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.