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.
- Version:
- $Id: Interval.java 1804130 2017-08-04 14:41:11Z ssteiner $
-
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 TypeMethodDescription(package private) void
addDependent
(InstanceTime dependent, boolean forBegin) Adds a dependent InstanceTime for this Interval.float
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.(package private) void
removeDependent
(InstanceTime dependent, boolean forBegin) Removes a dependent InstanceTime for this Interval.(package private) float
setBegin
(float begin) Updates the begin time for this interval.(package private) float
setEnd
(float end, InstanceTime endInstanceTime) Updates the end time for 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. -
addDependent
Adds a dependent InstanceTime for this Interval. -
removeDependent
Removes a dependent InstanceTime for this Interval. -
setBegin
float setBegin(float begin) Updates the begin time for this interval. -
setEnd
Updates the end time for this interval.
-