Package com.jgoodies.animation
Interface Animation
-
- All Known Implementing Classes:
AbstractAnimation
,AnimatedLabel.BlendOverAnimation
,Animations.OffsetAnimation
,Animations.OneTimeAnimation
,Animations.ParallelAnimation
,Animations.PauseAnimation
,Animations.RepeatedAnimation
,Animations.ReversedAnimation
,Animations.SequencedAnimation
,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.TODO: Consider renaming #animate to #applyEffect, then rename AbstractApplication #applyEffect to something similar that indicates the implementation aspect.
- Version:
- $Revision: 1.8 $
- See Also:
AbstractAnimation
,Animations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAnimationListener(AnimationListener listener)
Adds the givenAnimationListener
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 givenAnimationListener
from this animation.
-
-
-
Method Detail
-
duration
long duration()
Returns this animation's duration.- Returns:
- this animation duration
-
animate
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.- Parameters:
time
- the time used to determine the animation effect
-
addAnimationListener
void addAnimationListener(AnimationListener listener)
Adds the givenAnimationListener
to this animation.- Parameters:
listener
- theAnimationListener
to add
-
removeAnimationListener
void removeAnimationListener(AnimationListener listener)
Removes the givenAnimationListener
from this animation.- Parameters:
listener
- theAnimationListener
to remove
-
-