com.jgoodies.animation

Interface AnimationFunction

Known Implementing Classes:
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.

Version:
$Revision: 1.1 $
Author:
Karsten Lentzsch
See Also:
AnimationFunctions, AbstractAnimationFunction

Method Summary

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.

Method Details

duration

public long duration()
Returns the length of this function's valid time interval.
Returns:
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.
Parameters:
time - the time used to determine the animation effect
Returns:
the animation effect at the given time

Copyright © 2001-2006 JGoodies Karsten Lentzsch. All Rights Reserved.