jfreerails.client.renderer
Class StationNamesRenderer
java.lang.Object
jfreerails.client.renderer.StationNamesRenderer
- All Implemented Interfaces:
- Painter
public class StationNamesRenderer
- extends java.lang.Object
- implements Painter
Class to render the station names and spheres of influence on the game map.
Names are retrieved from the KEY.STATIONS object. Date: 14th April 2003 28
May 2004 updated to also show station sphere of influence.
- Author:
- Scott Bennett, Luke Lindsay
Method Summary |
void |
paint(java.awt.Graphics2D g)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
w
private final ReadOnlyWorld w
modelRoot
private final ModelRoot modelRoot
fontSize
private final int fontSize
bgColor
private final java.awt.Color bgColor
textColor
private final java.awt.Color textColor
dash1
static final float[] dash1
dashed
static final java.awt.BasicStroke dashed
font
private final java.awt.Font font
StationNamesRenderer
public StationNamesRenderer(ReadOnlyWorld world,
ModelRoot modelRoot)
paint
public void paint(java.awt.Graphics2D g)
- Specified by:
paint
in interface Painter