public abstract class AbstractAnimationFunction<T> extends java.lang.Object implements AnimationFunction<T>
AnimationFunction
interface.AnimationFunctions
Modifier | Constructor and Description |
---|---|
protected |
AbstractAnimationFunction(long duration)
Constructs an
AbstractAnimationFunction using the given
duration. |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
valueAt
protected AbstractAnimationFunction(long duration)
AbstractAnimationFunction
using the given
duration.duration
- the function's durationjava.lang.IllegalArgumentException
- if the duration is negativeprotected final void checkTimeRange(long time)
IllegalArgumentException
is thrown.time
- the time to be checkedjava.lang.IllegalArgumentException
- if the time is outside the valid time
rangepublic final long duration()
duration
in interface AnimationFunction<T>
Copyright © 2001-2011 JGoodies Karsten Lentzsch. All Rights Reserved.