|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrlgamekit.map.display.TiledMapPainter
public class TiledMapPainter
Paint a tiled (cell based) map.
| Constructor Summary | |
|---|---|
TiledMapPainter()
|
|
| Method Summary | |
|---|---|
java.awt.Dimension |
calculateMapBounds()
Calculate the display area needed to display the full map. |
int |
getCurrentLayer()
|
void |
getCursorRectangle(java.awt.Rectangle redrawRect)
|
java.awt.Point |
mousePosToTile(int mousex,
int mousey)
Reverse mapping of mouse (screen) coordinate to tile coordinate. |
void |
paint(java.awt.Graphics gr)
Paint the map onto a graphics context. |
void |
setCurrentLayer(int layer)
|
void |
setHasTransparentTiles(boolean yesno)
|
void |
setLocator(TileLocator tileLocator)
|
void |
setMap(LayeredMap map)
|
void |
setMark(int x,
int y)
|
void |
setShowScripts(boolean yesno)
|
void |
setTilePainter(TilePainter tilePainter)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TiledMapPainter()
| Method Detail |
|---|
public void setShowScripts(boolean yesno)
public void setHasTransparentTiles(boolean yesno)
public void setMark(int x,
int y)
public void setMap(LayeredMap map)
public void setLocator(TileLocator tileLocator)
public void setTilePainter(TilePainter tilePainter)
public int getCurrentLayer()
public void setCurrentLayer(int layer)
public java.awt.Dimension calculateMapBounds()
public void getCursorRectangle(java.awt.Rectangle redrawRect)
public void paint(java.awt.Graphics gr)
gr - Context to paint upon.
public java.awt.Point mousePosToTile(int mousex,
int mousey)
mousex - mouse x positionmousey - mouse y position
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||