public abstract class AbstractAnimationFunction<T> extends 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, waitvalueAtprotected AbstractAnimationFunction(long duration)
AbstractAnimationFunction using the given
duration.duration - the function's durationIllegalArgumentException - if the duration is negativeprotected final void checkTimeRange(long time)
IllegalArgumentException is thrown.time - the time to be checkedIllegalArgumentException - if the time is outside the valid time
rangepublic final long duration()
duration in interface AnimationFunction<T>Copyright © 2018 JGoodies Software GmbH. All rights reserved.