e6c33e727d
doing anything special as of yet relating to the color depth of the target component or its other pecularities. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@64 542714f4-19e9-0310-aa3c-eee0fc999fb1
38 lines
872 B
Java
38 lines
872 B
Java
//
|
|
// $Id: SceneView.java,v 1.5 2001/07/19 00:22:02 shaper Exp $
|
|
|
|
package com.threerings.miso.scene;
|
|
|
|
import com.threerings.miso.tile.Tile;
|
|
|
|
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.
|
|
*/
|
|
public interface SceneView
|
|
{
|
|
/**
|
|
* Render the scene to the given graphics context.
|
|
*/
|
|
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 the tile at the specified location and layer in the scene.
|
|
*/
|
|
public void setTile (int x, int y, int lnum, Tile tile);
|
|
}
|