From 1dc8070910e87d6edb7d53917facffd8054eb5a9 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 6 Apr 2004 03:53:26 +0000 Subject: [PATCH] Checking these in for Ray so that things will compile. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2990 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/media/MediaPanel.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/media/MediaPanel.java b/src/java/com/threerings/media/MediaPanel.java index d980c7ee8..e36e2b8e1 100644 --- a/src/java/com/threerings/media/MediaPanel.java +++ b/src/java/com/threerings/media/MediaPanel.java @@ -1,5 +1,5 @@ // -// $Id: MediaPanel.java,v 1.41 2004/02/25 14:43:17 mdb Exp $ +// $Id: MediaPanel.java,v 1.42 2004/04/06 03:53:26 mdb Exp $ package com.threerings.media; @@ -143,6 +143,14 @@ public class MediaPanel extends JComponent _spritemgr.addSprite(sprite); } + /** + * @return true if the sprite is already added to this panel. + */ + public boolean isManaged (Sprite sprite) + { + return _spritemgr.isManaged(sprite); + } + /** * Removes a sprite from this panel. */ @@ -168,6 +176,14 @@ public class MediaPanel extends JComponent _animmgr.registerAnimation(anim); } + /** + * @return true if the animation is already added to this panel. + */ + public boolean isManaged (Animation anim) + { + return _animmgr.isManaged(anim); + } + /** * Aborts a currently running animation and removes it from this * panel. Animations are normally automatically removed when they