experimental
Class LineDrawTrackPieceView

java.lang.Object
  extended by experimental.LineDrawTrackPieceView
All Implemented Interfaces:
TrackPieceRenderer

public class LineDrawTrackPieceView
extends java.lang.Object
implements TrackPieceRenderer

This TrackPieceRenderer renders track pieces by drawing lines so avoids the need to load images.

Author:
Luke Lindsay

Field Summary
private  int[] xx
           
private  int[] yy
           
 
Constructor Summary
LineDrawTrackPieceView()
           
 
Method Summary
 void drawTrackPieceIcon(int trackTemplate, java.awt.Graphics g, int x, int y, java.awt.Dimension tileSize)
           
 void dumpImages(ImageManager imageManager)
          Adds the images this TileRenderer uses to the specified ImageManager.
 java.awt.Image getTrackPieceIcon(int trackTemplate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xx

private int[] xx

yy

private int[] yy
Constructor Detail

LineDrawTrackPieceView

public LineDrawTrackPieceView()
Method Detail

getTrackPieceIcon

public java.awt.Image getTrackPieceIcon(int trackTemplate)
Specified by:
getTrackPieceIcon in interface TrackPieceRenderer

drawTrackPieceIcon

public void drawTrackPieceIcon(int trackTemplate,
                               java.awt.Graphics g,
                               int x,
                               int y,
                               java.awt.Dimension tileSize)
Specified by:
drawTrackPieceIcon in interface TrackPieceRenderer

dumpImages

public void dumpImages(ImageManager imageManager)
Description copied from interface: TrackPieceRenderer
Adds the images this TileRenderer uses to the specified ImageManager.

Specified by:
dumpImages in interface TrackPieceRenderer