org.mars_sim.msp.ui.standard.tool.map
Class VehicleTrailMapLayer

java.lang.Object
  extended by org.mars_sim.msp.ui.standard.tool.map.VehicleTrailMapLayer
All Implemented Interfaces:
MapLayer

public class VehicleTrailMapLayer
extends java.lang.Object
implements MapLayer

The VehicleTrailMapLayer is a graphics layer to display vehicle trails.


Constructor Summary
VehicleTrailMapLayer()
           
 
Method Summary
 void displayLayer(Coordinates mapCenter, java.lang.String mapType, java.awt.Graphics g)
          Displays the layer on the map image.
 void setSingleVehicle(Vehicle singleVehicle)
          Sets the single vehicle trail to display.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleTrailMapLayer

public VehicleTrailMapLayer()
Method Detail

setSingleVehicle

public void setSingleVehicle(Vehicle singleVehicle)
Sets the single vehicle trail to display. Set to null if display all vehicle trails.

Parameters:
singleVehicle - the vehicle to display trail.

displayLayer

public void displayLayer(Coordinates mapCenter,
                         java.lang.String mapType,
                         java.awt.Graphics g)
Displays the layer on the map image.

Specified by:
displayLayer in interface MapLayer
Parameters:
mapCenter - the location of the center of the map.
mapType - the type of map.
g - graphics context of the map display.