|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.opensha.commons.gui.LabeledBoxPanel
org.opensha.commons.param.editor.impl.ParameterListEditor
org.opensha.sha.gui.beans.IMR_GuiBean
public class IMR_GuiBean
Title: IMR Gui Bean
Description: This is the IMR Gui Bean. This bean can be instantiated to be added to the applets. It displays the following : 1. a pick list to choose a IMR. 2. a pick list to choose Gaussian truncation type 3. a pick list to choose std dev type
Copyright: Copyright (c) 2002
Company:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
IMR_EDITOR_TITLE
|
static String |
IMR_PARAM_NAME
|
| Fields inherited from class org.opensha.commons.param.editor.impl.ParameterListEditor |
|---|
C, D, parameterEditors, parameterList, parametersName |
| Fields inherited from class org.opensha.commons.gui.LabeledBoxPanel |
|---|
addDefault, borderColor, editorPanel, GBL, headerLabel, headerPanel, headerPanelBackgroundColor, jScrollPane1, title |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
IMR_GuiBean(IMR_GuiBeanAPI api)
class default constructor |
|
IMR_GuiBean(IMR_GuiBeanAPI api,
Collection<AttenRelRef> imrRefs)
class constructor where IMRs can be specified |
|
IMR_GuiBean(IMR_GuiBeanAPI api,
String currentIMT,
String retroIMT,
double currentPeriod,
double retroPeriod)
class default constructor |
|
| Method Summary | |
|---|---|
void |
addAttenuationRelationshipChangeListener(ScalarIMRChangeListener listener)
|
void |
fireAttenuationRelationshipChangedEvent(ScalarIMR oldAttenRel,
ScalarIMR newAttenRel)
|
ScalarIMR |
getIMR_Instance(String name)
This method will return the instance of selected IMR |
ScalarIMR |
getSelectedIMR_Instance()
This method will return the instance of selected IMR |
String |
getSelectedIMR_Name()
this method will return the name of selected IMR |
List<? extends ScalarIMR> |
getSupportedIMRs()
return a list of imr instances shown in this gui bean |
boolean |
isIntensityMeasureSupported(AttenuationRelationship attenRel,
String intensityMeasure,
double period)
Checks if the Parameter is a supported intensity-Measure (checking only the name and Period). |
void |
parameterChange(ParameterChangeEvent event)
This is the main function of this interface. |
void |
parameterChangeFailed(ParameterChangeFailEvent e)
Shown when a Constraint error is thrown on a ParameterEditor |
void |
parameterChangeWarning(ParameterChangeWarningEvent e)
Function that must be implemented by all Listeners for ParameterChangeWarnEvents. |
void |
removeAttenuationRelationshipChangeListener(ScalarIMRChangeListener listener)
|
void |
setIMRParamListAndEditor(String currentIMT,
String retroIMT,
double currentPeriod,
double retroPeriod)
|
void |
showWarningMessages(boolean show)
Whether to show the warning messages or not In some cases, we may not want to show warning messages. |
protected void |
toggleSigmaLevelBasedOnTypeValue(String value)
sigma level is visible or not |
| Methods inherited from class org.opensha.commons.param.editor.impl.ParameterListEditor |
|---|
addParameters, getParameterEditor, getParameterList, getVisibleParameters, getVisibleParametersCloned, refreshParamEditor, replaceParameterForEditor, setEnabled, setParameterList, setParameterVisible |
| Methods inherited from class org.opensha.commons.gui.LabeledBoxPanel |
|---|
add, add, add, add, add, addPanel, getBorderColor, getHeaderPanelBackgroundColor, getTitle, jbInit, remove, remove, removeAll, setHeaderPanelBackgroundColor, setLayout, setTitle |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String IMR_PARAM_NAME
public static final String IMR_EDITOR_TITLE
| Constructor Detail |
|---|
public IMR_GuiBean(IMR_GuiBeanAPI api)
classNames -
public IMR_GuiBean(IMR_GuiBeanAPI api,
Collection<AttenRelRef> imrRefs)
api - classNames -
public IMR_GuiBean(IMR_GuiBeanAPI api,
String currentIMT,
String retroIMT,
double currentPeriod,
double retroPeriod)
classNames - | Method Detail |
|---|
public void setIMRParamListAndEditor(String currentIMT,
String retroIMT,
double currentPeriod,
double retroPeriod)
public boolean isIntensityMeasureSupported(AttenuationRelationship attenRel,
String intensityMeasure,
double period)
intensityMeasure - Name of the intensity Measure parameterperiod - Period Param Name is intensity measure is SA
public void parameterChange(ParameterChangeEvent event)
parameterChange in interface ParameterChangeListenerevent - protected void toggleSigmaLevelBasedOnTypeValue(String value)
value - public void parameterChangeWarning(ParameterChangeWarningEvent e)
parameterChangeWarning in interface ParameterChangeWarningListenerevent - The Event which triggered this function callpublic void showWarningMessages(boolean show)
show - public void parameterChangeFailed(ParameterChangeFailEvent e)
parameterChangeFailed in interface ParameterChangeFailListenere - Description of the Parameterpublic String getSelectedIMR_Name()
public ScalarIMR getSelectedIMR_Instance()
public ScalarIMR getIMR_Instance(String name)
public List<? extends ScalarIMR> getSupportedIMRs()
public void addAttenuationRelationshipChangeListener(ScalarIMRChangeListener listener)
public void removeAttenuationRelationshipChangeListener(ScalarIMRChangeListener listener)
public void fireAttenuationRelationshipChangedEvent(ScalarIMR oldAttenRel,
ScalarIMR newAttenRel)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||