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 AnimationThis interface describes time based animations. Basically, the#animatemethod 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 voidaddAnimationListener(AnimationListener listener)Adds the givenAnimationListenerto this animation.voidanimate(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.longduration()Returns this animation's duration.voidremoveAnimationListener(AnimationListener listener)Removes the givenAnimationListenerfrom 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 givenAnimationListenerto this animation.- Parameters:
listener- theAnimationListenerto add
-
removeAnimationListener
void removeAnimationListener(AnimationListener listener)
Removes the givenAnimationListenerfrom this animation.- Parameters:
listener- theAnimationListenerto remove
-
-