com.jgoodies.animation
Interface Animation

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

Version:
$Revision: 1.1 $
Author:
Karsten Lentzsch
See Also:
AbstractAnimation, 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.
 

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 given AnimationListener to this animation.

Parameters:
listener - the AnimationListener to add

removeAnimationListener

void removeAnimationListener(AnimationListener listener)
Removes the given AnimationListener from this animation.

Parameters:
listener - the AnimationListener to remove


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