org.mars_sim.msp.ui.standard.unit_display_info
Class RoverDisplayInfoBean

java.lang.Object
  extended by org.mars_sim.msp.ui.standard.unit_display_info.RoverDisplayInfoBean
All Implemented Interfaces:
UnitDisplayInfo

public class RoverDisplayInfoBean
extends java.lang.Object

Provides display information about a rover.


Constructor Summary
RoverDisplayInfoBean()
          Constructor
 
Method Summary
 javax.swing.Icon getButtonIcon()
          Gets icon for unit button.
 double getMapClickRange()
          Gets the range (km) for clicking on unit on navigator map.
 java.awt.Font getMapLabelFont()
          Gets the label font for navigator map.
 java.lang.String getSound(Unit unit)
          Gets a sound appropriate for this unit.
 java.awt.Color getSurfGlobeColor()
          Gets display color for surface globe.
 javax.swing.Icon getSurfMapIcon(Unit unit)
          Gets display icon for the surface navigator map.
 java.awt.Color getSurfMapLabelColor()
          Gets the label color for surface navigator map.
 java.awt.Color getTopoGlobeColor()
          Gets display color for topo globe.
 javax.swing.Icon getTopoMapIcon(Unit unit)
          Gets display icon for topo navigator map.
 java.awt.Color getTopoMapLabelColor()
          Gets the label color for topo navigator map.
 boolean isGlobeDisplayed(Unit unit)
          Checks if the unit is to be displayed on the navigator tool globe.
 boolean isMapBlink(Unit unit)
          Checks if the map icon should blink on and off.
 boolean isMapDisplayed(Unit unit)
          Checks if unit is to be displayed on the navigator tool map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoverDisplayInfoBean

public RoverDisplayInfoBean()
Constructor

Method Detail

getButtonIcon

public javax.swing.Icon getButtonIcon()
Description copied from interface: UnitDisplayInfo
Gets icon for unit button.

Returns:
icon

getSound

public java.lang.String getSound(Unit unit)
Description copied from interface: UnitDisplayInfo
Gets a sound appropriate for this unit.

Parameters:
unit - the unit to display.
Returns:
sound filepath for unit or empty string if none.

isMapDisplayed

public boolean isMapDisplayed(Unit unit)
Checks if unit is to be displayed on the navigator tool map.

Specified by:
isMapDisplayed in interface UnitDisplayInfo
Parameters:
unit - the unit to display
Returns:
true if unit is to be displayed on navigator map.

getSurfMapIcon

public javax.swing.Icon getSurfMapIcon(Unit unit)
Gets display icon for the surface navigator map.

Specified by:
getSurfMapIcon in interface UnitDisplayInfo
Parameters:
unit - the unit to display
Returns:
icon

getTopoMapIcon

public javax.swing.Icon getTopoMapIcon(Unit unit)
Gets display icon for topo navigator map.

Specified by:
getTopoMapIcon in interface UnitDisplayInfo
Parameters:
unit - the unit to display
Returns:
icon

isMapBlink

public boolean isMapBlink(Unit unit)
Checks if the map icon should blink on and off.

Specified by:
isMapBlink in interface UnitDisplayInfo
Parameters:
unit - the unit to display
Returns:
true if blink

getSurfMapLabelColor

public java.awt.Color getSurfMapLabelColor()
Gets the label color for surface navigator map.

Specified by:
getSurfMapLabelColor in interface UnitDisplayInfo
Returns:
color

getTopoMapLabelColor

public java.awt.Color getTopoMapLabelColor()
Gets the label color for topo navigator map.

Specified by:
getTopoMapLabelColor in interface UnitDisplayInfo
Returns:
color

getMapLabelFont

public java.awt.Font getMapLabelFont()
Gets the label font for navigator map.

Specified by:
getMapLabelFont in interface UnitDisplayInfo
Returns:
font

getMapClickRange

public double getMapClickRange()
Gets the range (km) for clicking on unit on navigator map.

Specified by:
getMapClickRange in interface UnitDisplayInfo
Returns:
clicking range

isGlobeDisplayed

public boolean isGlobeDisplayed(Unit unit)
Checks if the unit is to be displayed on the navigator tool globe.

Specified by:
isGlobeDisplayed in interface UnitDisplayInfo
Parameters:
unit - the unit to display.
Returns:
true if unit is to be displayed on globe

getSurfGlobeColor

public java.awt.Color getSurfGlobeColor()
Gets display color for surface globe.

Specified by:
getSurfGlobeColor in interface UnitDisplayInfo
Returns:
color

getTopoGlobeColor

public java.awt.Color getTopoGlobeColor()
Gets display color for topo globe.

Specified by:
getTopoGlobeColor in interface UnitDisplayInfo
Returns:
color