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:
Walter Korman
2001-08-23 00:23:58 +00:00
parent 0e61a42004
commit f15738ca20
4 changed files with 61 additions and 26 deletions
@@ -1,11 +1,11 @@
//
// $Id: SceneViewPanel.java,v 1.11 2001/08/22 02:14:57 mdb Exp $
// $Id: SceneViewPanel.java,v 1.12 2001/08/23 00:23:58 shaper Exp $
package com.threerings.miso.scene;
import java.awt.*;
import java.util.List;
import javax.swing.JPanel;
import javax.swing.*;
import com.threerings.media.sprite.*;
import com.threerings.media.tile.TileManager;
@@ -94,6 +94,11 @@ public class SceneViewPanel
}
}
public JComponent getComponent ()
{
return this;
}
public void paintComponent (Graphics g)
{
render(g);