|
||||||||||
| 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.sha.gui.beans.EqkRuptureFromERFSelectorPanel
public class EqkRuptureFromERFSelectorPanel
Title: EqkRuptureFromERFSelectorPanel
Description: This class creates a JPanel to select the Earthquake Rupture from the list of already existing Earthquake Rupture Forecast model.
| 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 | |
|---|---|
protected static String |
C
Name of the class |
protected static boolean |
D
|
static String |
ERF_PARAM_NAME
|
static String |
RUPTURE_HYPOLOCATIONS_PARAM_NAME
|
static String |
RUPTURE_PARAM_NAME
|
static String |
SOURCE_PARAM_NAME
|
| 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 | |
|---|---|
EqkRuptureFromERFSelectorPanel(BaseERF baseERF,
List<ERF_Ref> erfRefs)
If Application has already created the ERF Gui Bean then give that to this Gui Bean. |
|
EqkRuptureFromERFSelectorPanel(List<ERF_Ref> erfRefs)
Constructor : It accepts the classNames of the ERFs to be shown in the editor |
|
| Method Summary | |
|---|---|
void |
addERFs_ToList(ArrayList erfList)
Adds the ERF's to the existing ERF List in the gui bean to be displayed in the gui. |
EqkRupSelectorGuiBeanAPI |
getEqkRuptureSelectorPanel()
|
ERF_GuiBean |
getERF_ParamEditor()
|
Location |
getHypocenterLocation()
|
void |
getHypocenterLocationsForSelectedRupture()
First gets the rupture with given index from the source as selected in the GUI Bean, so that hypocenter parameter always shows the locations for the selected rupture index in the GUI. |
Parameter |
getParameter(String param)
|
ParameterEditor |
getParameterEditor(String paramName)
|
ParameterListEditor |
getParameterListEditor()
|
String |
getParameterListMetadataString()
First gets the selected index rupture from the source, so that user gets the metadata for the rupture selected in this GUI bean. |
EqkRupture |
getRupture()
We are getting the rupture with rupIndex from the source with sourceIndex, that user has input in GUI bean always. |
int |
getRuptureIndex()
|
ERF |
getSelectedERF_Instance()
|
ProbEqkSource |
getSource()
|
int |
getSourceIndex()
|
String |
getTimespanMetadataString()
|
ParameterList |
getVisibleParameterList()
|
void |
parameterChange(ParameterChangeEvent event)
This is the main function of this interface. |
void |
removeERFs_FromList(ArrayList erfList)
Removes the ERF's from the existing ERF List in the gui bean to be displayed in the gui. |
void |
setEqkRupForecast(BaseERF erf)
Sets the selected ERF in the ERF GuiBean |
void |
setRuptureForSelectedSource(int ruptureIndex)
set the rupture, for the selected source, with ruptureIndex in the Rupture Index parameter |
void |
setSelectedERF()
creates the selected ERF based on the selected ERF Name |
void |
setSourceFromSelectedERF(int sourceIndex)
set the source, from selected ERF, with sourceIndex in the Source parameter |
void |
showAllParamsForForecast(boolean flag)
see if we have to show all the Adjustable Params for the ERF in a seperate window when user selects different ERF. |
| 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 static final String C
protected static final boolean D
public static final String ERF_PARAM_NAME
public static final String SOURCE_PARAM_NAME
public static final String RUPTURE_PARAM_NAME
public static final String RUPTURE_HYPOLOCATIONS_PARAM_NAME
| Constructor Detail |
|---|
public EqkRuptureFromERFSelectorPanel(BaseERF baseERF,
List<ERF_Ref> erfRefs)
erfGuiBean - ERF_GuiBean
public EqkRuptureFromERFSelectorPanel(List<ERF_Ref> erfRefs)
throws InvocationTargetException
erfClassNames -
InvocationTargetException| Method Detail |
|---|
public void setSelectedERF()
public void setEqkRupForecast(BaseERF erf)
erf - EqkRupForecastAPIpublic void setSourceFromSelectedERF(int sourceIndex)
sourceIndex - public void setRuptureForSelectedSource(int ruptureIndex)
ruptureIndex - public void getHypocenterLocationsForSelectedRupture()
public void parameterChange(ParameterChangeEvent event)
parameterChange in interface ParameterChangeListenerevent - public void showAllParamsForForecast(boolean flag)
flag: - Based on the boolean flag the ERF adjuatable Param List is shown
if user changes the selcetd ERF.public ERF_GuiBean getERF_ParamEditor()
public String getParameterListMetadataString()
getParameterListMetadataString in interface EqkRupSelectorGuiBeanAPI
public void addERFs_ToList(ArrayList erfList)
throws InvocationTargetException
erfList -
InvocationTargetException
public void removeERFs_FromList(ArrayList erfList)
throws InvocationTargetException
erfList -
InvocationTargetExceptionpublic Parameter getParameter(String param)
getParameter in interface EqkRupSelectorGuiBeanAPI: - Name of the Parameter
public ParameterEditor getParameterEditor(String paramName)
getParameterEditor in interface EqkRupSelectorGuiBeanAPIparamName -
public ERF getSelectedERF_Instance()
public EqkRupture getRupture()
getRupture in interface EqkRupSelectorGuiBeanAPIpublic ProbEqkSource getSource()
public ParameterListEditor getParameterListEditor()
getParameterListEditor in interface EqkRupSelectorGuiBeanAPIpublic ParameterList getVisibleParameterList()
getVisibleParameterList in interface EqkRupSelectorGuiBeanAPIpublic int getSourceIndex()
public int getRuptureIndex()
public Location getHypocenterLocation()
getHypocenterLocation in interface EqkRupSelectorGuiBeanAPIpublic EqkRupSelectorGuiBeanAPI getEqkRuptureSelectorPanel()
getEqkRuptureSelectorPanel in interface EqkRupSelectorGuiBeanAPIpublic String getTimespanMetadataString()
getTimespanMetadataString in interface EqkRupSelectorGuiBeanAPI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||