| java.lang.Object com.jgoodies.animation.AbstractAnimationFunction
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. | final public long | duration() Returns this animation function's duration. |
AbstractAnimationFunction | protected AbstractAnimationFunction(long duration)(Code) | | Constructs an AbstractAnimationFunction using the given
duration.
Parameters: duration - the function's duration throws: IllegalArgumentException - if the duration is negative |
checkTimeRange | protected void checkTimeRange(long time)(Code) | | 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.
Parameters: time - the time to be checked throws: IllegalArgumentException - if the time is outside the valid time range |
duration | final public long duration()(Code) | | Returns this animation function's duration.
this animation function's duration |
|
|