|
||||||||||
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.UnitIconMapLayer
public class UnitIconMapLayer
The UnitMapLayer is a graphics layer to display unit icons.
Constructor Summary | |
---|---|
UnitIconMapLayer(java.awt.Component displayComponent)
|
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 UnitIconMapLayer(java.awt.Component displayComponent)
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 MapLayer
mapCenter
- 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 |