|
||||||||||
| 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.MineralMapLayer
public class MineralMapLayer
A map layer showing mineral concentrations.
| Constructor Summary | |
|---|---|
MineralMapLayer(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. |
java.util.Map<java.lang.String,java.awt.Color> |
getMineralColors()
Gets a map of all mineral type names and their display colors. |
boolean |
isMineralDisplayed(java.lang.String mineralType)
Checks if a mineral type is displayed on the map. |
void |
setMineralDisplayed(java.lang.String mineralType,
boolean displayed)
Sets a mineral type to be displayed on the map or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MineralMapLayer(java.awt.Component displayComponent)
displayComponent - the display component.| Method Detail |
|---|
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.public java.util.Map<java.lang.String,java.awt.Color> getMineralColors()
public boolean isMineralDisplayed(java.lang.String mineralType)
mineralType - the mineral type to display.
public void setMineralDisplayed(java.lang.String mineralType,
boolean displayed)
mineralType - the mineral type to display.displayed - true if displayed, false if not.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||