Brought miso stuff into line with new media architecture; implemented

various and sundry optimizations in the process. We love the spiral
development.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1476 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-06-18 22:38:12 +00:00
parent 7253a68c7c
commit 4036904d0e
5 changed files with 418 additions and 601 deletions
@@ -1,5 +1,5 @@
//
// $Id: SceneView.java,v 1.28 2002/05/31 03:38:03 mdb Exp $
// $Id: SceneView.java,v 1.29 2002/06/18 22:38:12 mdb Exp $
package com.threerings.miso.scene;
@@ -18,21 +18,13 @@ import com.threerings.media.util.Path;
public interface SceneView
{
/**
* Lets the view know that it will be scrolled by the specified number
* of pixels in each direction the next time that {@link #paint} is
* called. This is called automatically by the {@link SceneViewPanel}
* which takes care of dirtying the regions exposed by the scrolling
* and copying the scrollable pixels.
*/
public void viewWillScroll (int dx, int dy);
/**
* Renders the scene to the given graphics context.
* Renders an invalid porition of the scene to the given graphics
* context.
*
* @param gfx the graphics context.
* @param invalidRects the list of invalid regions to be repainted.
* @param invalidRect the invalid region to be repainted.
*/
public void paint (Graphics2D gfx, Rectangle[] invalidRects);
public void paint (Graphics2D gfx, Rectangle invalidRect);
/**
* Sets the scene that we're rendering.