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

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

public class NavpointMapLayer
extends java.lang.Object
implements MapLayer

The NavpointMapLayer is a graphics layer to display mission navpoints.


Constructor Summary
NavpointMapLayer(java.awt.Component displayComponent)
          Constructor
 
Method Summary
 void displayLayer(Coordinates mapCenter, java.lang.String mapType, java.awt.Graphics g)
          Displays the layer on the map image.
 void setSelectedNavpoint(NavPoint selectedNavpoint)
          Sets a navpoint to be selected and displayed differently than the others.
 void setSingleMission(Mission singleMission)
          Sets the single mission to display navpoints for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavpointMapLayer

public NavpointMapLayer(java.awt.Component displayComponent)
Constructor

Parameters:
displayComponent - the display component.
Method Detail

setSingleMission

public void setSingleMission(Mission singleMission)
Sets the single mission to display navpoints for. Set to null to display all mission navpoints.

Parameters:
singleMission - the mission to display navpoints for.

setSelectedNavpoint

public void setSelectedNavpoint(NavPoint selectedNavpoint)
Sets a navpoint to be selected and displayed differently than the others.

Parameters:
selectedNavpoint - the selected navpoint.

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.