fcmodeler.animation
Class AnimationEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--fcmodeler.animation.AnimationEvent
All Implemented Interfaces:
java.io.Serializable

public class AnimationEvent
extends java.util.EventObject

An event representing a change in an animation. The animator controlling the animation can be accessed through the getAnimator method, and the current frame can be accesed through the getFrame method.

Since:
JDK1.3
Version:
$Revision: 1.2 $
Author:
Zach Cox
See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AnimationEvent(Animator animator, int frame)
          Creates a new AnimationEvent using the specified animator and frame number.
 
Method Summary
 Animator getAnimator()
          Returns the animator that caused this event to occur.
 int getFrame()
          Returns the frame number of this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnimationEvent

public AnimationEvent(Animator animator,
                      int frame)
Creates a new AnimationEvent using the specified animator and frame number.
Parameters:
animator - the animator that caused this event to occur.
frame - the current frame number.
Method Detail

getAnimator

public Animator getAnimator()
Returns the animator that caused this event to occur.
Returns:
the animator that caused this event to occur.

getFrame

public int getFrame()
Returns the frame number of this event.
Returns:
the frame number of this event.