General updating per initial code review. Created EditableSceneView
to separate scene display from editing functionality. Load and initialize managers in a fashion that more appropriately hides the implementation details. Tidied comments up a bit. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@103 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: SceneView.java,v 1.6 2001/07/20 00:35:09 shaper Exp $
|
||||
// $Id: SceneView.java,v 1.7 2001/07/23 18:52:51 shaper Exp $
|
||||
|
||||
package com.threerings.miso.scene;
|
||||
|
||||
@@ -9,9 +9,9 @@ import java.awt.Component;
|
||||
import java.awt.Graphics;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
* The SceneView 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
|
||||
{
|
||||
@@ -20,23 +20,8 @@ public interface SceneView
|
||||
*/
|
||||
public void paint (Graphics g);
|
||||
|
||||
/**
|
||||
* Set a tile to be highlighted when the scene is rendered.
|
||||
*/
|
||||
public void setHighlightedTile (int x, int y);
|
||||
|
||||
/**
|
||||
* Set the scene that we're rendering.
|
||||
*/
|
||||
public void setScene (Scene scene);
|
||||
|
||||
/**
|
||||
* Set whether coordinates should be drawn for each tile.
|
||||
*/
|
||||
public void setShowCoordinates (boolean show);
|
||||
|
||||
/**
|
||||
* Set the tile at the specified location and layer in the scene.
|
||||
*/
|
||||
public void setTile (int x, int y, int lnum, Tile tile);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user