com.threerings.opengl.model
Interface AnimationObserver

All Known Subinterfaces:
ModelObserver
All Known Implementing Classes:
AnimationAdapter, ModelAdapter, ModelViewer

public interface AnimationObserver

Notifies observers when animations complete or are cancelled.


Method Summary
 boolean animationStarted(Animation animation)
          Notes that an animation has started.
 boolean animationStopped(Animation animation, boolean completed)
          Notifies the observer that the animation has stopped.
 

Method Detail

animationStarted

boolean animationStarted(Animation animation)
Notes that an animation has started.

Returns:
true to keep the observer in the list, false to remove it.

animationStopped

boolean animationStopped(Animation animation,
                         boolean completed)
Notifies the observer that the animation has stopped.

Parameters:
completed - whether or not the animation ran to completion (as opposed to being cancelled).
Returns:
true to keep the observer in the list, false to remove it.


Copyright © 2011. All Rights Reserved.