fcmodeler.animation
Interface AnimationListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
AnimationControlPanel

public interface AnimationListener
extends java.util.EventListener

The listener interface for receiving animation events. The class that is interested in the state of an animation implements this interface. The object created with that class is then registered with an animator using the animator's addAnimationListener method. When the animation is started, stopped, paused, or a new frame is shown, the relevant method in the listener object is called, and the AnimationEvent is passed to it.

Since:
JDK1.3
Version:
$Revision: 1.2 $
Author:
Zach Cox

Method Summary
 void animationPaused(AnimationEvent evt)
          Invoked when the animation is paused.
 void animationStarted(AnimationEvent evt)
          Invoked when the animation is started.
 void animationStopped(AnimationEvent evt)
          Invoked when the animation is stopped.
 void frameShown(AnimationEvent evt)
          Invoked when a new frame is shown by the animation.
 

Method Detail

animationPaused

public void animationPaused(AnimationEvent evt)
Invoked when the animation is paused.
Parameters:
evt - the object representing the pause.

animationStarted

public void animationStarted(AnimationEvent evt)
Invoked when the animation is started.
Parameters:
evt - the object representing the start.

animationStopped

public void animationStopped(AnimationEvent evt)
Invoked when the animation is stopped.
Parameters:
evt - the object representing the stop.

frameShown

public void frameShown(AnimationEvent evt)
Invoked when a new frame is shown by the animation.
Parameters:
evt - the object representing the new frame event.