org.opensha.sha.gui.controls
Class GMTMapCalcOptionControl

java.lang.Object
  extended by org.opensha.commons.gui.ControlPanel
      extended by org.opensha.sha.gui.controls.GMTMapCalcOptionControl
All Implemented Interfaces:
Named

public class GMTMapCalcOptionControl
extends ControlPanel

Title: CalcOptionControl

Description: This class gives option to the user to choose the option to select the way he wants to do the calculation for the maps. He has the option of either selecting to do the calculation of his local or on the server.

Version:
1.0
Author:
: Ned Field, Nitin Gupta and Vipin Gupta

Field Summary
static java.lang.String NAME
           
static java.lang.String USE_LOCAL
           
static java.lang.String USE_SERVER
           
 
Constructor Summary
GMTMapCalcOptionControl(java.awt.Component parentComponent)
           
 
Method Summary
 void doinit()
          This method will be called the first time the control panel is displayed.
 java.awt.Window getComponent()
           
 java.lang.String getMapCalculationOption()
           
 
Methods inherited from class org.opensha.commons.gui.ControlPanel
getName, init, isInitialized, showControlPanel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

USE_LOCAL

public static final java.lang.String USE_LOCAL
See Also:
Constant Field Values

USE_SERVER

public static final java.lang.String USE_SERVER
See Also:
Constant Field Values
Constructor Detail

GMTMapCalcOptionControl

public GMTMapCalcOptionControl(java.awt.Component parentComponent)
Method Detail

doinit

public void doinit()
Description copied from class: ControlPanel
This method will be called the first time the control panel is displayed. All setup should be in this method and not in the constructor, so that the apps can start quickly.

Specified by:
doinit in class ControlPanel

getMapCalculationOption

public java.lang.String getMapCalculationOption()
Returns:
the selected option String choosen by the user to calculate Hazard Map.

getComponent

public java.awt.Window getComponent()
Specified by:
getComponent in class ControlPanel