|
||||||||||
| 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.IMT_NewGuiBean
public class IMT_NewGuiBean
This is a GUI bean for selecting IMTs with an IMT-First approach. It takes a list of IMRs and lists every IMT supported by at least one IMR.
| 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 |
IMT_PARAM_NAME
|
static String |
TITLE
|
| 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 | |
|---|---|
IMT_NewGuiBean(IMR_MultiGuiBean imrGuiBean)
Init with an IMR gui bean. |
|
IMT_NewGuiBean(List<? extends ScalarIMR> imrs)
Init with a list of IMRs |
|
IMT_NewGuiBean(ScalarIMR imr)
Init with single IMR |
|
| Method Summary | |
|---|---|
void |
addIMTChangeListener(IMTChangeListener listener)
|
void |
clearIMTChangeListeners(IMTChangeListener listener)
|
static ArrayList<Double> |
getAllSupportedPeriods(Collection<? extends ScalarIMR> imrs)
Creates a list of all periods found in any of the given IMRs |
static ArrayList<Double> |
getCommonPeriods(Collection<? extends ScalarIMR> imrs)
Creates a list of periods common to all of the given IMRs |
Parameter<Double> |
getSelectedIM()
|
String |
getSelectedIMT()
Returns the name of the selected Intensity Measure |
ArrayList<String> |
getSupportedIMTs()
|
void |
imrChange(ScalarIMRChangeEvent event)
Function that must be implemented by all Listeners for AttenuationRelationshipChangeEvents. |
void |
parameterChange(ParameterChangeEvent event)
Function that must be implemented by all Listeners for ParameterChangeEvents. |
void |
removeIMTChangeListener(IMTChangeListener listener)
|
void |
setIMR(ScalarIMR imr)
Setup IMT GUI for single IMR |
void |
setIMRs(List<? extends ScalarIMR> imrs)
Set IMT GUI for multiple IMRs. |
static void |
setIMTinIMR(Parameter<Double> imt,
ScalarIMR imr)
This will set the IMT (and it's independent params) in the given IMR. |
void |
setIMTinIMR(ScalarIMR imr)
Sets the current IM in the given IMR |
void |
setIMTinIMRs(Map<TectonicRegionType,ScalarIMR> imrMap)
Sets the current IM in each IMR in the given IMR map |
static void |
setIMTinIMRs(Parameter<Double> imt,
Map<TectonicRegionType,ScalarIMR> imrMap)
Set the IMT in each IMR contained in the IMR map |
void |
setSelectedIMT(String imtName)
Set the selected Intensity Measure by name |
void |
setSupportedPeriods(List<Double> supportedPeriods)
Sets the periods that should be displayed...by default all periods will be displayed, even those only supported by a single IMR. |
| 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 IMT_PARAM_NAME
public static final String TITLE
| Constructor Detail |
|---|
public IMT_NewGuiBean(ScalarIMR imr)
imr - public IMT_NewGuiBean(IMR_MultiGuiBean imrGuiBean)
imrGuiBean - public IMT_NewGuiBean(List<? extends ScalarIMR> imrs)
imrs - | Method Detail |
|---|
public void setIMR(ScalarIMR imr)
imr - public void setIMRs(List<? extends ScalarIMR> imrs)
imrs - public String getSelectedIMT()
public void setSelectedIMT(String imtName)
imtName - public ArrayList<String> getSupportedIMTs()
public Parameter<Double> getSelectedIM()
public void parameterChange(ParameterChangeEvent event)
ParameterChangeListener
parameterChange in interface ParameterChangeListenerevent - The Event which triggered this function callpublic void addIMTChangeListener(IMTChangeListener listener)
public void removeIMTChangeListener(IMTChangeListener listener)
public void clearIMTChangeListeners(IMTChangeListener listener)
public void setIMTinIMR(ScalarIMR imr)
imr - public void setIMTinIMRs(Map<TectonicRegionType,ScalarIMR> imrMap)
imrMap -
public static void setIMTinIMR(Parameter<Double> imt,
ScalarIMR imr)
setIntensityMeasure for the IMR, it might throw an error because the IMT could
have been cloned or could be from another IMR. This gets around that problem by setting
the IMR by name, then setting the value of each independent parameter.
imt - imr -
public static void setIMTinIMRs(Parameter<Double> imt,
Map<TectonicRegionType,ScalarIMR> imrMap)
imt - imrMap - public void setSupportedPeriods(List<Double> supportedPeriods)
supportedPeriods - public static ArrayList<Double> getCommonPeriods(Collection<? extends ScalarIMR> imrs)
imrs -
public static ArrayList<Double> getAllSupportedPeriods(Collection<? extends ScalarIMR> imrs)
imrs -
public void imrChange(ScalarIMRChangeEvent event)
ScalarIMRChangeListener
imrChange in interface ScalarIMRChangeListenerevent - The Event which triggered this function call
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||