|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.ui.standard.tool.map.UnitLabelMapLayer
public class UnitLabelMapLayer
The UnitMapLayer is a graphics layer to display unit labels.
| Constructor Summary | |
|---|---|
UnitLabelMapLayer()
|
|
| Method Summary | |
|---|---|
void |
displayLayer(Coordinates mapCenter,
java.lang.String mapType,
java.awt.Graphics g)
Displays the layer on the map image. |
protected void |
displayUnit(Unit unit,
Coordinates mapCenter,
java.lang.String mapType,
java.awt.Graphics g)
Displays a unit on the map. |
protected boolean |
getBlinkFlag()
Gets the blink flag. |
void |
setUnitsToDisplay(java.util.Collection<Unit> unitsToDisplay)
Sets the units to display in this layer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnitLabelMapLayer()
| Method Detail |
|---|
protected void displayUnit(Unit unit,
Coordinates mapCenter,
java.lang.String mapType,
java.awt.Graphics g)
unit - the unit to display.mapCenter - the location center of the map.mapType - the type of map.g - the graphics context.protected boolean getBlinkFlag()
public void setUnitsToDisplay(java.util.Collection<Unit> unitsToDisplay)
unitsToDisplay - collection of units to display.
public void displayLayer(Coordinates mapCenter,
java.lang.String mapType,
java.awt.Graphics g)
displayLayer in interface MapLayermapCenter - the location of the center of the map.mapType - the type of map.g - graphics context of the map display.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||