Class PlottingOptionControl

  extended by org.opensha.commons.gui.ControlPanel
      extended by org.opensha.sha.gui.controls.PlottingOptionControl
All Implemented Interfaces:

public class PlottingOptionControl
extends ControlPanel

Title: PlottingOptionControl

Description: This class provides user with the option of adding new hazardcurves to the existing set or plotting on the top of existing. Both these options work in the following manner: 1)Ploting on top of the existing dataset : This is just addition of new dataset with the existing in a new color. Now if the existing dataset is Epistemic_List, newly added dataset can a new set of Epistemic list curves or a simple hazard curve. If the new dataste is from the simple hazard curve then just add that to the existing in a different color. But if the new dataset is a Epistemic list then add this list to the exisiting in a different color, with mean and fractile in unique color too, meaning different from the earlier dataset color. 2)Adding to existing dataset: this option only works for the epistemic list. This option won't work and will automatically get (1) option, if user is trying to add 2 different epistemic lists. Once addition has been performed then new set of fractiles and mean would be computed and plotted removing the earlier set.

: Ned Field, Nitin Gupta and Vipin Gupta

Field Summary
static java.lang.String ADD_TO_EXISTING
static java.lang.String NAME
static java.lang.String PLOT_ON_TOP
Constructor Summary
PlottingOptionControl(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 getSelectedOption()
 void setSelectedOption(java.lang.String option)
          sets the selected option to plot the map
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


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


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


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


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


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


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


public void setSelectedOption(java.lang.String option)
sets the selected option to plot the map

option -


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