|
||||||||||
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.USGSMarsMap
public class USGSMarsMap
Access the Mars maps provided by the The Unites States Geological Survey - Astrogeology Team and The Planetary Data System - Imaging Node. Specifically from the Planetary Data Systems (PDS) Mars Explorer. Behind their web server is a Solaris application called MapMaker that generates the maps.
Field Summary | |
---|---|
static double |
HALF_MAP_ANGLE
|
static int |
MAP_HEIGHT
|
static int |
MAP_WIDTH
|
static double |
PIXEL_RHO
|
static java.lang.String |
TYPE
|
Fields inherited from interface org.mars_sim.msp.ui.standard.tool.map.Map |
---|
DISPLAY_HEIGHT, DISPLAY_WIDTH |
Constructor Summary | |
---|---|
USGSMarsMap()
Constructs a USGSMarsMap object |
|
USGSMarsMap(java.awt.Component comp)
Constructs a USGSMarsMap object |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Invoked when an action occurs. |
void |
drawMap(Coordinates newCenter)
Creates a 2D map at a given center point. |
java.awt.Image |
getMapImage()
Returns map image |
boolean |
isConnectionTimeout()
Checks if the connection has timed out. |
boolean |
isImageDone()
determines if a requested map is complete |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TYPE
public static final double HALF_MAP_ANGLE
public static final int MAP_HEIGHT
public static final int MAP_WIDTH
public static final double PIXEL_RHO
Constructor Detail |
---|
public USGSMarsMap()
public USGSMarsMap(java.awt.Component comp)
comp
- the map's container componentMethod Detail |
---|
public void drawMap(Coordinates newCenter) throws java.lang.Exception
drawMap
in interface Map
newCenter
- the center location.
java.lang.Exception
- if error in drawing map.public boolean isConnectionTimeout()
public boolean isImageDone()
isImageDone
in interface Map
public java.awt.Image getMapImage()
getMapImage
in interface Map
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |