|
||||||||||
| 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.map.CannedMarsMap
public abstract class CannedMarsMap
The CannedMarsMap class reads in data from files in the map_data jar file in order to generate a map image.
| Field Summary |
|---|
| Fields inherited from interface org.mars_sim.msp.ui.swing.tool.map.Map |
|---|
DISPLAY_HEIGHT, DISPLAY_WIDTH, HALF_MAP_ANGLE, MAP_HEIGHT, MAP_VIS_HEIGHT, MAP_VIS_WIDTH, MAP_WIDTH, PIXEL_RHO, SCREEN_OFFSET_X, SCREEN_OFFSET_Y, TWO_PI |
| Constructor Summary | |
|---|---|
CannedMarsMap(JComponent displayArea,
MapData mapData)
Constructor |
|
| Method Summary | |
|---|---|
void |
drawMap(Coordinates newCenter)
Creates a 2D map at a given center point. |
Image |
getMapImage()
Gets the constructed map image. |
boolean |
isImageDone()
Checks if a requested map is complete. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CannedMarsMap(JComponent displayArea,
MapData mapData)
displayArea - the component display area.mapData - the map data.| Method Detail |
|---|
public void drawMap(Coordinates newCenter)
drawMap in interface MapnewCenter - the new center locationpublic boolean isImageDone()
isImageDone in interface Mappublic Image getMapImage()
getMapImage in interface Map
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||