jfreerails.client.renderer
Class MapBackgroundRender.TrackLayer
java.lang.Object
jfreerails.client.renderer.MapBackgroundRender.TrackLayer
- All Implemented Interfaces:
- MapLayerRenderer
- Enclosing class:
- MapBackgroundRender
public final class MapBackgroundRender.TrackLayer
- extends java.lang.Object
- implements MapLayerRenderer
This innner class represents a view of the track on the map.
- Author:
- Luke Lindsay 21 September 2001
Method Summary |
void |
paintRect(java.awt.Graphics g,
java.awt.Rectangle visibleRect)
|
private void |
paintRectangleOfTiles(java.awt.Graphics g,
int x,
int y,
int width,
int height)
|
void |
paintRectangleOfTiles(java.awt.Graphics g,
java.awt.Rectangle tilesToPaint)
Paints a rectangle of tiles onto the supplied graphics context. |
void |
paintTile(java.awt.Graphics g,
int tileX,
int tileY)
|
void |
refreshAll()
|
void |
refreshTile(int x,
int y)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
w
private final ReadOnlyWorld w
rr
private final RenderersRoot rr
MapBackgroundRender.TrackLayer
public MapBackgroundRender.TrackLayer(ReadOnlyWorld world,
RenderersRoot trackPieceViewList)
paintRectangleOfTiles
public void paintRectangleOfTiles(java.awt.Graphics g,
java.awt.Rectangle tilesToPaint)
- Paints a rectangle of tiles onto the supplied graphics context.
- Parameters:
g
- The graphics context on which the tiles get painted.tilesToPaint
- The rectangle, measured in tiles, to paint.
paintTile
public void paintTile(java.awt.Graphics g,
int tileX,
int tileY)
- Specified by:
paintTile
in interface MapLayerRenderer
paintRectangleOfTiles
private void paintRectangleOfTiles(java.awt.Graphics g,
int x,
int y,
int width,
int height)
refreshTile
public void refreshTile(int x,
int y)
- Specified by:
refreshTile
in interface MapLayerRenderer
paintRect
public void paintRect(java.awt.Graphics g,
java.awt.Rectangle visibleRect)
- Specified by:
paintRect
in interface MapLayerRenderer
refreshAll
public void refreshAll()
- Specified by:
refreshAll
in interface MapLayerRenderer