com.jgoodies.animation
Class AbstractAnimationFunction
java.lang.Object
com.jgoodies.animation.AbstractAnimationFunction
- AnimationFunction
public abstract class AbstractAnimationFunction
extends java.lang.Object
An abstract class that minimizes the effort required to implement
the
AnimationFunction
interface.
protected void | checkTimeRange(long time) - Checks whether the given time is in the valid time range, that is
a non-negative time that is smaller than this function's duration.
|
long | duration() - Returns this animation function's duration.
|
AbstractAnimationFunction
protected AbstractAnimationFunction(long duration)
Constructs an AbstractAnimationFunction
using the given
duration.
duration
- the function's duration
checkTimeRange
protected void checkTimeRange(long time)
Checks whether the given time is in the valid time range, that is
a non-negative time that is smaller than this function's duration.
If not, an IllegalArgumentException
is thrown.
time
- the time to be checked
duration
public final long duration()
Returns this animation function's duration.
- duration in interface AnimationFunction
- this animation function's duration
Copyright © 2001-2006 JGoodies Karsten Lentzsch. All Rights Reserved.