Added MediaPanel.clearAnimations(), fixed up comments and removed
unnecessary SpriteManager.clearSprites(). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2069 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: AbstractMediaManager.java,v 1.3 2002/11/26 02:47:04 shaper Exp $
|
||||
// $Id: AbstractMediaManager.java,v 1.4 2002/12/15 23:12:37 shaper Exp $
|
||||
|
||||
package com.threerings.media;
|
||||
|
||||
@@ -146,8 +146,9 @@ public abstract class AbstractMediaManager
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears all media from the manager. This does not invalidate their
|
||||
* vacated bounds; it is assumed that it will be ok.
|
||||
* Clears all media from the manager and calls {@link
|
||||
* AbstractMedia#shutdown} on each. This does not invalidate the
|
||||
* media's vacated bounds; it is assumed that it will be ok.
|
||||
*/
|
||||
protected void clearMedia ()
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: MediaPanel.java,v 1.26 2002/12/08 02:49:53 mdb Exp $
|
||||
// $Id: MediaPanel.java,v 1.27 2002/12/15 23:12:37 shaper Exp $
|
||||
|
||||
package com.threerings.media;
|
||||
|
||||
@@ -157,7 +157,7 @@ public class MediaPanel extends JComponent
|
||||
*/
|
||||
public void clearSprites ()
|
||||
{
|
||||
_spritemgr.clearSprites();
|
||||
_spritemgr.clearMedia();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -176,6 +176,14 @@ public class MediaPanel extends JComponent
|
||||
_animmgr.unregisterAnimation(anim);
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes all animations from this panel.
|
||||
*/
|
||||
public void clearAnimations ()
|
||||
{
|
||||
_animmgr.clearMedia();
|
||||
}
|
||||
|
||||
// documentation inherited from interface
|
||||
public void tick (long tickStamp)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: SpriteManager.java,v 1.39 2002/11/05 20:52:39 mdb Exp $
|
||||
// $Id: SpriteManager.java,v 1.40 2002/12/15 23:12:37 shaper Exp $
|
||||
|
||||
package com.threerings.media.sprite;
|
||||
|
||||
@@ -109,17 +109,6 @@ public class SpriteManager extends AbstractMediaManager
|
||||
removeMedia(sprite);
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears all sprites from the sprite manager. This does not
|
||||
* invalidate their vacated bounds because it is assumed that either
|
||||
* the whole view will be repainted after this or it is going away
|
||||
* entirely. The sprites will be {@link Sprite#shutdown}, however.
|
||||
*/
|
||||
public void clearSprites ()
|
||||
{
|
||||
clearMedia();
|
||||
}
|
||||
|
||||
/**
|
||||
* Render the sprite paths to the given graphics context.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user