|
||||||||||
| 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.gcim.ui.IMT_GcimGuiBean
public class IMT_GcimGuiBean
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, 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_GcimGuiBean(IMR_MultiGuiBean imrGuiBean,
IMCorrRel_MultiGuiBean imCorrRelGuiBean,
Parameter<Double> imj,
ArrayList<String> currentIMiList)
Init with an IMR and IMCorrRel gui bean. |
|
IMT_GcimGuiBean(List<? extends ScalarIMR> imrs,
ArrayList<ImCorrelationRelationship> imCorrRels,
Parameter<Double> imj,
ArrayList<String> currentIMiList)
Init with a list of IMRs and IMCorrRels |
|
IMT_GcimGuiBean(ScalarIMR imr,
ImCorrelationRelationship imCorrRel,
Parameter<Double> imj,
ArrayList<String> currentIMiList)
Init with single IMR and IMCorrRel |
|
| 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 |
ParameterList |
getIMTParams()
This method gets the a single |
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 |
setIMRIMCorrRel(ScalarIMR imr,
ImCorrelationRelationship imCorrRel)
Setup IMT GUI for single IMR and IMCorrRel |
void |
setIMRsIMCorrRels(List<? extends ScalarIMR> imrs,
ArrayList<ImCorrelationRelationship> imCorrRels)
Set IMT GUI for multiple IMRs and IMCorrRels. |
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 IMT 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 |
setIMTsInIMCorrRel(ImCorrelationRelationship imCorrRel,
Parameter<Double> imj)
Sets the current IMi and IMj in the given IMCorrRel |
static void |
setIMTsinIMCorrRel(Parameter<Double> imti,
Parameter<Double> imtj,
ImCorrelationRelationship imCorrRel)
This will set the IMTs (both IMi and IMj and their independent params) in the given IMCorrRel. |
void |
setIMTsinIMCorrRels(Map<TectonicRegionType,ImCorrelationRelationship> imCorrRelMap,
Parameter<Double> imj)
Sets the current IMTs in each IMCorrRel in the given IMCorrRel map |
static void |
setIMTsInIMCorrRels(Parameter<Double> imti,
Parameter<Double> imtj,
Map<TectonicRegionType,ImCorrelationRelationship> imCorrRelMap)
Set the IMTs in each IMCorrRel contained in the IMCorrRel map |
void |
setSelectedIMT(String imtName)
Set the selected Intensity Measure by name |
void |
setSelectedIMTPeriod(double period)
Set the selected Intensity measure period |
void |
setSupportedPeriods(ArrayList<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_GcimGuiBean(ScalarIMR imr,
ImCorrelationRelationship imCorrRel,
Parameter<Double> imj,
ArrayList<String> currentIMiList)
imr -
public IMT_GcimGuiBean(IMR_MultiGuiBean imrGuiBean,
IMCorrRel_MultiGuiBean imCorrRelGuiBean,
Parameter<Double> imj,
ArrayList<String> currentIMiList)
imrGuiBean - imCorrRelGuiBean -
public IMT_GcimGuiBean(List<? extends ScalarIMR> imrs,
ArrayList<ImCorrelationRelationship> imCorrRels,
Parameter<Double> imj,
ArrayList<String> currentIMiList)
imrs - | Method Detail |
|---|
public void setIMRIMCorrRel(ScalarIMR imr,
ImCorrelationRelationship imCorrRel)
imr -
public void setIMRsIMCorrRels(List<? extends ScalarIMR> imrs,
ArrayList<ImCorrelationRelationship> imCorrRels)
imrs, - imCorrRelspublic String getSelectedIMT()
public void setSelectedIMT(String imtName)
imtName - public void setSelectedIMTPeriod(double period)
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 setIMTsInIMCorrRel(ImCorrelationRelationship imCorrRel,
Parameter<Double> imj)
imr - public void setIMTinIMRs(Map<TectonicRegionType,ScalarIMR> imrMap)
imrMap -
public void setIMTsinIMCorrRels(Map<TectonicRegionType,ImCorrelationRelationship> imCorrRelMap,
Parameter<Double> imj)
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 IMT by name, then setting the value of each independent parameter.
imt - imr -
public static void setIMTsinIMCorrRel(Parameter<Double> imti,
Parameter<Double> imtj,
ImCorrelationRelationship imCorrRel)
setIntensityMeasure for the IMCorrRel, it might throw an error because the IMT could
have been cloned or could be from another IMCorrRel. This gets around that problem by setting
the IMCorrRel by name, then setting the value of each independent parameter.
imti, - imtjimr -
public static void setIMTinIMRs(Parameter<Double> imt,
Map<TectonicRegionType,ScalarIMR> imrMap)
imt - imrMap -
public static void setIMTsInIMCorrRels(Parameter<Double> imti,
Parameter<Double> imtj,
Map<TectonicRegionType,ImCorrelationRelationship> imCorrRelMap)
imti, - imtjimrMap - public void setSupportedPeriods(ArrayList<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 callpublic ParameterList getIMTParams()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||