com.jgoodies.animation
Interface Animation
- AbstractAnimation, Animations.OneTimeAnimation, BasicTextAnimation, FanAnimation, GlyphAnimation
public interface Animation
This interface describes time based animations. Basically,
the #animate
method applies an animation effect
to an animation target over the animation's duration.
addAnimationListener
public void addAnimationListener(AnimationListener listener)
Adds the given AnimationListener
to this animation.
listener
- the AnimationListener
to add
animate
public 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.
time
- the time used to determine the animation effect
duration
public long duration()
Returns this animation's duration.
removeAnimationListener
public void removeAnimationListener(AnimationListener listener)
Removes the given AnimationListener
from this animation.
listener
- the AnimationListener
to remove
Copyright © 2001-2006 JGoodies Karsten Lentzsch. All Rights Reserved.