kinetic.util
Interface KTEngineEventListener


public interface KTEngineEventListener

interface used if you want be able to respond to even generated by the engine such as animation start, stop, finish, and new frame requests to update something like a UI


Method Summary
 void onAnimationFinished(double time)
          called when the engine reached the end of the aniamtion sequence
 void onAnimationNewFrame(double time)
          call when the engine requests a new frame to be drawn
 void onAnimationStart(double time)
          called when the animation is started
 void onAnimationStop(double time)
          called when the animation was stopped
 

Method Detail

onAnimationStart

public void onAnimationStart(double time)
called when the animation is started

Parameters:
time - value of the animation time when called

onAnimationStop

public void onAnimationStop(double time)
called when the animation was stopped

Parameters:
time - value of the animation time when called

onAnimationFinished

public void onAnimationFinished(double time)
called when the engine reached the end of the aniamtion sequence

Parameters:
time - value of the animation time when called

onAnimationNewFrame

public void onAnimationNewFrame(double time)
call when the engine requests a new frame to be drawn

Parameters:
time - value of the animation time when called