Modified the animation interface not to take a target component and an

animated view, but to combine those so that the animated view provides the
necessary means by which to invalidate and paint. Now the SceneViewPanel
rather than the SceneView is what the animation manager talks to. It then
passes the necessary information on to the SceneView.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@297 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-08-21 20:02:39 +00:00
parent 30a6e3f3a2
commit eb13ed5cc1
5 changed files with 64 additions and 41 deletions
@@ -1,21 +1,29 @@
//
// $Id: SceneView.java,v 1.13 2001/08/16 23:14:21 mdb Exp $
// $Id: SceneView.java,v 1.14 2001/08/21 20:02:39 mdb Exp $
package com.threerings.miso.scene;
import java.awt.Component;
import java.awt.Graphics;
import java.util.List;
import com.threerings.media.sprite.*;
import com.threerings.media.sprite.Path;
import com.threerings.media.tile.Tile;
/**
* The SceneView interface provides an interface to be implemented by
* The scene view interface provides an interface to be implemented by
* classes that provide a view of a given scene by drawing the scene
* contents onto a particular GUI component.
*/
public interface SceneView extends AnimatedView
public interface SceneView
{
/**
* Invalidate a list of rectangles in screen pixel coordinates in the
* scene view for later repainting.
*
* @param rects the list of {@link java.awt.Rectangle} objects.
*/
public void invalidateRects (List rects);
/**
* Render the scene to the given graphics context.
*