|
||||||||||
| 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.sha.gcim.ui.IMCorrRel_MultiGuiBean
public class IMCorrRel_MultiGuiBean
This is a IMCorrRel selection GUI which allows for multiple IM Correlation Relations to be selected and edited, one for each Tectonic Region Type.
| Nested Class Summary | |
|---|---|
class |
IMCorrRel_MultiGuiBean.ChooserComboBox
Internal sub-class for IMCorrRel chooser combo box |
class |
IMCorrRel_MultiGuiBean.EnableableCellRenderer
This class is the cell renderer for the drop down chooser boxes. |
| 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 | |
|---|---|
protected JCheckBox |
singleIMCorrRelBox
|
protected static Font |
supportedTRTFont
|
protected static Font |
unsupportedTRTFont
|
| Fields inherited from class org.opensha.commons.gui.LabeledBoxPanel |
|---|
addDefault, borderColor, C, D, 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 | |
|---|---|
IMCorrRel_MultiGuiBean(ArrayList<ImCorrelationRelationship> imCorrRels,
Parameter<Double> imtj)
Initializes the GUI with the given list of IMCorrRels |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
void |
addIMCorrRelChangeListener(IMCorrRelChangeListener listener)
|
protected IMCorrRel_MultiGuiBean.ChooserComboBox |
getChooser(TectonicRegionType trt)
|
HashMap<TectonicRegionType,ImCorrelationRelationship> |
getIMCorrRelMap()
This returns a clone of the current IMCorrRel map in the GUI. |
ArrayList<ImCorrelationRelationship> |
getIMCorrRels()
Returns a clone of this GUI's IMCorrRel list |
ArrayList<HashMap<TectonicRegionType,ImCorrelationRelationship>> |
getIMikCorrRelMap()
This returns a clone of the current IMikCorrRel map in the GUI. |
NtoNMap<TectonicRegionType,ImCorrelationRelationship> |
getNtoNMap()
|
protected IMCorrRel_ParamEditor |
getParamEdit()
|
ImCorrelationRelationship |
getSelectedIMCorrRel()
This returns the selected IMCorrRel if only a single one is selected. |
ArrayList<TectonicRegionType> |
getTectonicRegions()
|
void |
imtChange(IMTChangeEvent e)
This method will be called when the IMT is changed in an editor |
boolean |
isCheckBoxVisible()
|
boolean |
isIMCorrRelEnabled(String imCorrRelName)
|
boolean |
isMultipleIMCorrRels()
|
void |
rebuildGUI()
This rebuilds all components of the GUI for display |
void |
removeIMCorrRelChangeListener(IMCorrRelChangeListener listener)
|
void |
setIMCorrRel(String imCorrRelName,
TectonicRegionType trt)
|
void |
setIMTi(Parameter<Double> newIMTi)
Sets the IMTi that this GUI should use. |
void |
setMaxChooserChars(int maxChooserChars)
Sets the number of characters that should be displayed in the chooser lists. |
void |
setMultipleIMCorrRels(boolean multipleIMCorrRels)
Sets the GUI to multiple/single IMCorrRel mode. |
void |
setMultipleIMCorrRelsEnabled(boolean enabled)
this enables/disables the multiple IMCorrRel check box. |
void |
setMultipleIMikCorrRels(boolean multipleIMikCorrRels)
Sets the GUI to multiple/single IMikCorrRel mode. |
void |
setSelectedSingleIMCorrRel(String imCorrRelName)
Sets the GUI to single IMCorrRel mode, and sets the selected IMCorrRel to the given name. |
void |
setSelectedSingleIMikCorrRel(int corrRelIndex,
ImCorrelationRelationship imikCorrRel)
Sets the GUI to single IMikCorrRel mode, and sets the selected IMikCorrRel to the given name. |
void |
setTectonicRegions(ArrayList<TectonicRegionType> regions)
This sets the tectonic regions for the GUI. |
void |
showParamEditor(TectonicRegionType trt)
In multiple IMCorrRel mode, shows the parameter editor for the IMCorrRel associated with the given tectonic region type. |
void |
updateIMCorrRelMap()
This updates the current in-memory IMCorrRel map (the one returned by getIMCorrRelMap()) |
| 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 |
|---|
protected JCheckBox singleIMCorrRelBox
protected static final Font supportedTRTFont
protected static final Font unsupportedTRTFont
| Constructor Detail |
|---|
public IMCorrRel_MultiGuiBean(ArrayList<ImCorrelationRelationship> imCorrRels,
Parameter<Double> imtj)
imCorrRels - | Method Detail |
|---|
public void rebuildGUI()
public boolean isCheckBoxVisible()
public void setTectonicRegions(ArrayList<TectonicRegionType> regions)
regions - public ArrayList<TectonicRegionType> getTectonicRegions()
protected IMCorrRel_MultiGuiBean.ChooserComboBox getChooser(TectonicRegionType trt)
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic boolean isMultipleIMCorrRels()
public void setMultipleIMCorrRelsEnabled(boolean enabled)
enabled - public ImCorrelationRelationship getSelectedIMCorrRel()
RuntimeException is thrown.
public void showParamEditor(TectonicRegionType trt)
trt - protected IMCorrRel_ParamEditor getParamEdit()
public HashMap<TectonicRegionType,ImCorrelationRelationship> getIMCorrRelMap()
public ArrayList<HashMap<TectonicRegionType,ImCorrelationRelationship>> getIMikCorrRelMap()
public void updateIMCorrRelMap()
getIMCorrRelMap())
public void setMultipleIMCorrRels(boolean multipleIMCorrRels)
RundimeException is thrown.
The GUI will be updated, and IMCorrRel an change event will be fired as needed.
multipleIMCorrRels - public void setMultipleIMikCorrRels(boolean multipleIMikCorrRels)
RundimeException is thrown.
The GUI will be updated, and IMCorrRel an change event will be fired as needed.
multipleIMCorrRels - public void setSelectedSingleIMCorrRel(String imCorrRelName)
imCorrRelName -
public void setIMCorrRel(String imCorrRelName,
TectonicRegionType trt)
public void setSelectedSingleIMikCorrRel(int corrRelIndex,
ImCorrelationRelationship imikCorrRel)
imCorrRelName - public void addIMCorrRelChangeListener(IMCorrRelChangeListener listener)
public void removeIMCorrRelChangeListener(IMCorrRelChangeListener listener)
public boolean isIMCorrRelEnabled(String imCorrRelName)
public void setIMTi(Parameter<Double> newIMTi)
newIMTi - - new IMTi, or null to enable all IMCorrRelspublic ArrayList<ImCorrelationRelationship> getIMCorrRels()
public NtoNMap<TectonicRegionType,ImCorrelationRelationship> getNtoNMap()
public void imtChange(IMTChangeEvent e)
IMTChangeListener
imtChange in interface IMTChangeListenerpublic void setMaxChooserChars(int maxChooserChars)
maxChooserChars -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||