org.mars_sim.msp.ui.standard.tool.navigator
Class MarsGlobe

java.lang.Object
  extended by org.mars_sim.msp.ui.standard.tool.navigator.MarsGlobe

public class MarsGlobe
extends java.lang.Object

The MarsGlobe class generates the Martian globe for the GlobeDisplay object. It can center the globe at any set of coordinates.


Constructor Summary
MarsGlobe(java.lang.String globeType, javax.swing.JComponent displayArea)
          Constructs a MarsGlobe object
 
Method Summary
 void drawSphere(Coordinates newCenter)
          Creates a Sphere Image at given center point
 java.awt.Image getGlobeImage()
          Returns globe image
 boolean isImageDone()
          determines if a requested sphere is complete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarsGlobe

public MarsGlobe(java.lang.String globeType,
                 javax.swing.JComponent displayArea)
Constructs a MarsGlobe object

Parameters:
globeType - the type of globe: "surface" or "topo"
displayArea - the display component for the globe
Method Detail

drawSphere

public void drawSphere(Coordinates newCenter)
Creates a Sphere Image at given center point

Parameters:
newCenter - new center location

getGlobeImage

public java.awt.Image getGlobeImage()
Returns globe image

Returns:
globe image

isImageDone

public boolean isImageDone()
determines if a requested sphere is complete

Returns:
true if image is done