All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class IMSWG.IW.Mapplet.DisplayOptions

java.lang.Object
   |
   +----java.awt.MenuComponent
           |
           +----java.awt.MenuItem
                   |
                   +----IMSWG.IW.Mapplet.DisplayOptions

public class DisplayOptions
extends MenuItem
DisplayOptions class, the main class of this file. Essentially a menu item with a pop-up window function. Public Access Methods: DisplayOptions() - constructor. String getProjection() - returns projection string. String getGridSpacing() - returns spacing of grid lines in degrees. String getRivers() - "yes" or "no" to display lakes & rivers. String getPolitical() - "yes" or "no" to display political boundaries. String getRail() - "yes" or "no" to display rail roads. String getRoads() - "yes" or "no" to display roads. String getPlaces() - "yes" or "no" to display place names. String getWRS() - "wrs1" , "wrs2" or "none" to display wrs scenes. void die() - dispose of the frame window - when mapplet ends. boolean action() - pops up frame dialog box when button clicked.


Constructor Index

 o DisplayOptions(GeoPolygon, boolean)
DisplayOptions() - constructor.

Method Index

 o die()
void die() - dispose of the frame - called when mapplet ends.
 o displayMenuAction(Event)
boolean displayMenuAction() - handles Display Options menu item click by showing pop-up window.
 o fast()
boolean fast() - returns true if mapSpeed is "fast" or false if mapSpeed is "detailed".
 o getGridSpacing()
String getGridSpacing() - returns spacing of grid lines in degrees.
 o getPlaces()
String getPlaces() - returns "yes" or "no" to display place names.
 o getPolitical()
String getPolitical() - returns "yes" or "no" to display political boundaries.
 o getProjection()
String getProjection() - returns projection string set by dialog box.
 o getRail()
String getRail() - returns "yes" or "no" to display rail roads.
 o getRivers()
String getRivers() - returns "yes" or "no" to display lakes & rivers.
 o getRoads()
String getRoads() - returns "yes" or "no" to display major roads.
 o getWRS()
String getWRS() - returns "yes" or "no" to display WRS scenes.

Constructors

 o DisplayOptions
 public DisplayOptions(GeoPolygon geoPoly,
                       boolean alloptions)
DisplayOptions() - constructor. Creates Menu item labeled "Display Options", creates the pop-up window.

Methods

 o getProjection
 public String getProjection()
String getProjection() - returns projection string set by dialog box. Currently, it can be "ortho" or "plate".

 o getGridSpacing
 public String getGridSpacing()
String getGridSpacing() - returns spacing of grid lines in degrees. Can be "none", "1", "2", "5", "10", or "20".

 o getRail
 public String getRail()
String getRail() - returns "yes" or "no" to display rail roads.

 o getRoads
 public String getRoads()
String getRoads() - returns "yes" or "no" to display major roads.

 o getPlaces
 public String getPlaces()
String getPlaces() - returns "yes" or "no" to display place names.

 o getWRS
 public String getWRS()
String getWRS() - returns "yes" or "no" to display WRS scenes.

 o getRivers
 public String getRivers()
String getRivers() - returns "yes" or "no" to display lakes & rivers.

 o getPolitical
 public String getPolitical()
String getPolitical() - returns "yes" or "no" to display political boundaries.

 o fast
 public boolean fast()
boolean fast() - returns true if mapSpeed is "fast" or false if mapSpeed is "detailed".

 o die
 public void die()
void die() - dispose of the frame - called when mapplet ends.

 o displayMenuAction
 public boolean displayMenuAction(Event e)
boolean displayMenuAction() - handles Display Options menu item click by showing pop-up window.


All Packages  Class Hierarchy  This Package  Previous  Next  Index