com.jgoodies.animation
Interface AnimationFunction
- AbstractAnimationFunction
public interface AnimationFunction
This interface describes time-based animation functions by
their duration and a mapping from time to animation effects.
For each time in the animation's valid time interval,
the
#valueAt
method returns a value that will be used
to apply an animation effect.
long | duration() - Returns the length of this function's valid time interval.
|
Object | valueAt(long time) - Returns the animation effect for a given time in the valid time interval.
|
duration
public long duration()
Returns the length of this function's valid time interval.
- the length of this function's valid time interval
valueAt
public Object valueAt(long time)
Returns the animation effect for a given time in the valid time interval.
time
- the time used to determine the animation effect
- the animation effect at the given time
Copyright © 2001-2006 JGoodies Karsten Lentzsch. All Rights Reserved.