org.mars_sim.msp.ui.swing.tool.map
Interface Map

All Known Implementing Classes:
CannedMarsMap, SurfMarsMap, TopoMarsMap, USGSMarsMap

public interface Map

The Map interface represents a map usable by the MapDisplay class.


Field Summary
static int DISPLAY_HEIGHT
           
static int DISPLAY_WIDTH
           
static double HALF_MAP_ANGLE
           
static int MAP_HEIGHT
           
static int MAP_VIS_HEIGHT
           
static int MAP_VIS_WIDTH
           
static int MAP_WIDTH
           
static double PIXEL_RHO
           
static int SCREEN_OFFSET_X
           
static int SCREEN_OFFSET_Y
           
static double TWO_PI
           
 
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.
 

Field Detail

DISPLAY_HEIGHT

static final int DISPLAY_HEIGHT
See Also:
Constant Field Values

DISPLAY_WIDTH

static final int DISPLAY_WIDTH
See Also:
Constant Field Values

MAP_VIS_WIDTH

static final int MAP_VIS_WIDTH
See Also:
Constant Field Values

MAP_VIS_HEIGHT

static final int MAP_VIS_HEIGHT
See Also:
Constant Field Values

HALF_MAP_ANGLE

static final double HALF_MAP_ANGLE
See Also:
Constant Field Values

MAP_HEIGHT

static final int MAP_HEIGHT
See Also:
Constant Field Values

MAP_WIDTH

static final int MAP_WIDTH
See Also:
Constant Field Values

PIXEL_RHO

static final double PIXEL_RHO
See Also:
Constant Field Values

TWO_PI

static final double TWO_PI
See Also:
Constant Field Values

SCREEN_OFFSET_X

static final int SCREEN_OFFSET_X
See Also:
Constant Field Values

SCREEN_OFFSET_Y

static final int SCREEN_OFFSET_Y
See Also:
Constant Field Values
Method Detail

drawMap

void drawMap(Coordinates newCenter)
Creates a 2D map at a given center point.

Parameters:
newCenter - the new center location
Throws:
Exception - if error in drawing map.

isImageDone

boolean isImageDone()
Checks if a requested map is complete.

Returns:
true if requested map is complete

getMapImage

Image getMapImage()
Gets the constructed map image.

Returns:
constructed map image


Copyright © 2009-2013. All Rights Reserved.