Added invalidateRect().

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@784 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-12-15 04:20:26 +00:00
parent fa0506c85a
commit c60c0a557b
2 changed files with 17 additions and 2 deletions
@@ -1,5 +1,5 @@
//
// $Id: AnimatedPanel.java,v 1.2 2001/10/22 18:13:51 shaper Exp $
// $Id: AnimatedPanel.java,v 1.3 2001/12/15 04:20:26 mdb Exp $
package com.threerings.media.sprite;
@@ -74,6 +74,12 @@ public class AnimatedPanel extends JPanel implements AnimatedView
// nothing for now
}
// documentation inherited
public void invalidateRect (Rectangle rect)
{
// nothing for now
}
/**
* Paints this panel immediately. Since we know that we are always
* opaque and not dependent on Swing's double-buffering, we bypass the
@@ -1,8 +1,9 @@
//
// $Id: AnimatedView.java,v 1.4 2001/08/23 00:23:58 shaper Exp $
// $Id: AnimatedView.java,v 1.5 2001/12/15 04:20:26 mdb Exp $
package com.threerings.media.sprite;
import java.awt.Rectangle;
import javax.swing.JComponent;
/**
@@ -21,6 +22,14 @@ public interface AnimatedView
*/
public void invalidateRects (DirtyRectList rects);
/**
* Invalidates a rectangle in screen pixel coordinates in the scene
* view for later repainting.
*
* @param rect the {@link java.awt.Rectangle} to dirty.
*/
public void invalidateRect (Rectangle rect);
/**
* Requests that the animated view paint itself immediately (that it
* complete the painting process before returning from this function).