Package com.jgoodies.animation
Class AnimationFunctions.ReversedAnimationFunction<T>
- java.lang.Object
-
- com.jgoodies.animation.AbstractAnimationFunction<T>
-
- com.jgoodies.animation.AnimationFunctions.ReversedAnimationFunction<T>
-
- All Implemented Interfaces:
AnimationFunction<T>
- Enclosing class:
- AnimationFunctions
private static final class AnimationFunctions.ReversedAnimationFunction<T> extends AbstractAnimationFunction<T>
Helper class for reversing an animation function.
-
-
Field Summary
Fields Modifier and Type Field Description private AnimationFunction<T>
f
-
Constructor Summary
Constructors Modifier Constructor Description private
ReversedAnimationFunction(AnimationFunction<T> f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
valueAt(long time)
Returns the function value at a given time in the valid time interval.-
Methods inherited from class com.jgoodies.animation.AbstractAnimationFunction
checkTimeRange, duration
-
-
-
-
Field Detail
-
f
private final AnimationFunction<T> f
-
-
Constructor Detail
-
ReversedAnimationFunction
private ReversedAnimationFunction(AnimationFunction<T> f)
-
-
Method Detail
-
valueAt
public T valueAt(long time)
Description copied from interface:AnimationFunction
Returns the function value at a given time in the valid time interval. The value is undefined for times outside this function's time interval. An implementation may throw an exception, if this method called with a time outside the time interval.- Parameters:
time
- the time used to determine the animation effect- Returns:
- the function value at the given time
-
-