org.opensha.sha.gui.controls
Class X_ValuesInCurveControlPanel

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

public class X_ValuesInCurveControlPanel
extends ControlPanel

Title: X_ValuesInCurveControlPanel

Description: Provides the user to input his own set of X-Values for the HazardCurve

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

Field Summary
static java.lang.String CUSTOM_VALUES
           
static java.lang.String DEFAULT
           
static java.lang.String MIN_MAX_NUM
           
static java.lang.String NAME
           
static java.lang.String PEER_X_VALUES
           
static java.lang.String USGS_PGA_X_VALUES
           
static java.lang.String USGS_SA_01_AND_02_X_VALUES
           
static java.lang.String USGS_SA_X_VALUES
           
 
Constructor Summary
X_ValuesInCurveControlPanel(java.awt.Component parent, CurveDisplayAppAPI api)
          Class constructor
 
Method Summary
 void doinit()
          This method will be called the first time the control panel is displayed.
 java.awt.Window getComponent()
           
 void setX_Values(ArbitrarilyDiscretizedFunc func)
          Shows the custom X-Values from the application in the control Panel.
 void useDefaultX_Values()
          Sets the Control Panel to show the Defualt X values based on the selecetd IMT
 
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

PEER_X_VALUES

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

USGS_PGA_X_VALUES

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

USGS_SA_01_AND_02_X_VALUES

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

USGS_SA_X_VALUES

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

CUSTOM_VALUES

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

DEFAULT

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

MIN_MAX_NUM

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

X_ValuesInCurveControlPanel

public X_ValuesInCurveControlPanel(java.awt.Component parent,
                                   CurveDisplayAppAPI api)
Class constructor

Parameters:
parent - : Takes the Application instance to get its dimensions
api - : Takes the instance of the application implementing the X_ValuesInCurveControlPanelAPI to get the IMT value from the application, to show the the default X values based on IMT selected in the application.
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

useDefaultX_Values

public void useDefaultX_Values()
Sets the Control Panel to show the Defualt X values based on the selecetd IMT

Parameters:
imt -

setX_Values

public void setX_Values(ArbitrarilyDiscretizedFunc func)
Shows the custom X-Values from the application in the control Panel.

Parameters:
func: - ArbitrarilyDiscretizedFunc function to be shown in the control Panel

getComponent

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