sampleai
Class Inspector.IndexRenderer

java.lang.Object
  extended bysampleai.Inspector.IndexRenderer
All Implemented Interfaces:
TileRenderer
Enclosing class:
Inspector

public class Inspector.IndexRenderer
extends java.lang.Object
implements TileRenderer


Method Summary
 void prepareRenderingOn(java.awt.Graphics2D gr)
          Is called once before rendering, perform initialization, setting Fonts,Colors or whatever is required to prepare the Graphics.
 void render(java.awt.Graphics2D gr, int x, int y, int tileIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

prepareRenderingOn

public void prepareRenderingOn(java.awt.Graphics2D gr)
Description copied from interface: TileRenderer
Is called once before rendering, perform initialization, setting Fonts,Colors or whatever is required to prepare the Graphics. No other routines will alter the Graphics before render is called.

Specified by:
prepareRenderingOn in interface TileRenderer
Parameters:
gr - the graphics to render on

render

public void render(java.awt.Graphics2D gr,
                   int x,
                   int y,
                   int tileIndex)
Specified by:
render in interface TileRenderer
Parameters:
gr - the graphics to render on
x - the leftmost pixel of the tile
y - the topmost pixel of the tile
tileIndex - the index of the tile


generated: 20050107