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

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

public class ExploredSiteMapLayer
extends java.lang.Object
implements MapLayer


Constructor Summary
ExploredSiteMapLayer(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.
 int getIconHeight()
           
 int getIconWidth()
           
 void setDisplayMined(boolean displayMined)
          Should mined sites be displayed?
 void setDisplayReserved(boolean displayReserved)
          Should reserved sites be displayed?
 void setSelectedSite(ExploredLocation selectedSite)
          Sets the selected site.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExploredSiteMapLayer

public ExploredSiteMapLayer(java.awt.Component displayComponent)
Constructor

Parameters:
displayComponent - the display component.
Method Detail

setDisplayMined

public void setDisplayMined(boolean displayMined)
Should mined sites be displayed?

Parameters:
displayMined - true if display mined sites.

setDisplayReserved

public void setDisplayReserved(boolean displayReserved)
Should reserved sites be displayed?

Parameters:
displayReserved - true if display reserved sites.

setSelectedSite

public void setSelectedSite(ExploredLocation selectedSite)
Sets the selected site.

Parameters:
selectedSite - the selected site.

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.

getIconWidth

public int getIconWidth()

getIconHeight

public int getIconHeight()