com.jgoodies.animation
Interface Animation

All Known Implementing Classes:
AbstractAnimation

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.3 $
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

public long duration()
Returns this animation's duration.

Returns:
this animation duration

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.

Parameters:
time - the time used to determine the animation effect

addAnimationListener

public void addAnimationListener(AnimationListener listener)
Adds the given AnimationListener to this animation.

Parameters:
listener - the AnimationListener to add

removeAnimationListener

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

Parameters:
listener - the AnimationListener to remove


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