|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jgoodies.animation.AbstractAnimationFunction
public abstract class AbstractAnimationFunction
An abstract class that minimizes the effort required to implement
the AnimationFunction interface.
AnimationFunctions| Constructor Summary | |
|---|---|
protected |
AbstractAnimationFunction(long duration)
Constructs an AbstractAnimationFunction using the given
duration. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jgoodies.animation.AnimationFunction |
|---|
valueAt |
| Constructor Detail |
|---|
protected AbstractAnimationFunction(long duration)
AbstractAnimationFunction using the given
duration.
duration - the function's duration
java.lang.IllegalArgumentException - if the duration is negative| Method Detail |
|---|
protected void checkTimeRange(long time)
IllegalArgumentException is thrown.
time - the time to be checked
java.lang.IllegalArgumentException - if the time is outside the valid time
rangepublic final long duration()
duration in interface AnimationFunction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||