|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.ui.swing.tool.settlement.StructureMapLayer
public class StructureMapLayer
A settlement map layer for displaying buildings and construction sites.
| Constructor Summary | |
|---|---|
StructureMapLayer(SettlementMapPanel mapPanel)
Constructor |
|
| Method Summary | |
|---|---|
void |
destroy()
Destroy the map layer. |
void |
displayLayer(Graphics2D g2d,
Settlement settlement,
double xPos,
double yPos,
int mapWidth,
int mapHeight,
double rotation,
double scale)
Displays the settlement map layer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StructureMapLayer(SettlementMapPanel mapPanel)
mapPanel - the settlement map panel.| Method Detail |
|---|
public void displayLayer(Graphics2D g2d,
Settlement settlement,
double xPos,
double yPos,
int mapWidth,
int mapHeight,
double rotation,
double scale)
SettlementMapLayer
displayLayer in interface SettlementMapLayerg2d - the graphics context.settlement - the settlement to display.xPos - the X center position.yPos - the Y center position.mapWidth - the width of the map.mapHeight - the height of the map.rotation - the rotation (radians)scale - the map scale.public void destroy()
SettlementMapLayer
destroy in interface SettlementMapLayer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||