Modified the animation manager to monitor the ancestor events
associated with the animated view's component so that the refresh interval can be registered and unregistered based on component visibility. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@311 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
//
|
||||
// $Id: AnimatedView.java,v 1.3 2001/08/22 02:14:57 mdb Exp $
|
||||
// $Id: AnimatedView.java,v 1.4 2001/08/23 00:23:58 shaper Exp $
|
||||
|
||||
package com.threerings.media.sprite;
|
||||
|
||||
import javax.swing.JComponent;
|
||||
|
||||
/**
|
||||
* A view that wishes to interact with the animation manager needs to
|
||||
* implement this interface to give the animation manager a means by which
|
||||
@@ -26,4 +28,11 @@ public interface AnimatedView
|
||||
* paint.
|
||||
*/
|
||||
public void paintImmediately ();
|
||||
|
||||
/**
|
||||
* Return the component associated with the view so that the
|
||||
* animation manager can restrict its animation to when the
|
||||
* component is actually visible.
|
||||
*/
|
||||
public JComponent getComponent ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user