com.jme3.animation
Interface AnimEventListener


public interface AnimEventListener

AnimEventListener allows user code to receive various events regarding an AnimControl. For example, when an animation cycle is done.


Method Summary
 void onAnimChange(AnimControl control, AnimChannel channel, java.lang.String animName)
          Invoked when a animation is set to play by the user on the given channel.
 void onAnimCycleDone(AnimControl control, AnimChannel channel, java.lang.String animName)
          Invoked when an animation "cycle" is done.
 

Method Detail

onAnimCycleDone

void onAnimCycleDone(AnimControl control,
                     AnimChannel channel,
                     java.lang.String animName)
Invoked when an animation "cycle" is done. For non-looping animations, this event is invoked when the animation is finished playing. For looping animations, this even is invoked each time the animation is restarted.

Parameters:
control - The control to which the listener is assigned.
channel - The channel being altered
animName - The new animation that is done.

onAnimChange

void onAnimChange(AnimControl control,
                  AnimChannel channel,
                  java.lang.String animName)
Invoked when a animation is set to play by the user on the given channel.

Parameters:
control - The control to which the listener is assigned.
channel - The channel being altered
animName - The new animation name set.