| com.jgoodies.animation.Animation
All known Subclasses: com.jgoodies.animation.AbstractAnimation,
Animation | public interface Animation (Code) | | This interface describes time based animations. Basically,
the #animate method applies an animation effect
to an animation target over the animation's duration.
author: Karsten Lentzsch version: $Revision: 1.1 $ See Also: AbstractAnimation See Also: Animations |
Method Summary | |
void | addAnimationListener(AnimationListener listener) Adds the given AnimationListener to this animation. | void | animate(long time) Animates for the given time, that is, applies the animation effect
to the animation target and fires events when the animation is
started, stopped or repeated. | long | duration() Returns this animation's duration. | void | removeAnimationListener(AnimationListener listener) Removes the given AnimationListener from this animation. |
addAnimationListener | void addAnimationListener(AnimationListener listener)(Code) | | Adds the given AnimationListener to this animation.
Parameters: listener - the AnimationListener to add |
animate | void animate(long time)(Code) | | Animates for the given time, that is, applies the animation effect
to the animation target and fires events when the animation is
started, stopped or repeated.
Parameters: time - the time used to determine the animation effect |
duration | long duration()(Code) | | Returns this animation's duration.
this animation duration |
removeAnimationListener | void removeAnimationListener(AnimationListener listener)(Code) | | Removes the given AnimationListener from this animation.
Parameters: listener - the AnimationListener to remove |
|
|