|
||||||||||
| 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.param.editor.AbstractParameterEditorOld
org.opensha.sha.param.editor.MagPDF_ParameterEditor
public class MagPDF_ParameterEditor
Title: MagPDF_ParameterEditor
b>Description: This is a MagFreqDistParameter editor. All parameters listed in the constraint of the MagFreqDistParameter are listed as choices, and below are shown the associated independent parameters than need to be filled in to make the desired distribution.
| 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
Class name for debugging. |
protected static boolean |
D
If true print out debug statements. |
static String |
MAG_DIST_TITLE
|
| Fields inherited from class org.opensha.commons.param.editor.AbstractParameterEditorOld |
|---|
border1, catchConstraint, COMBO_WIDGET_GBC, CONST_BORDER, DATA_TEXT, DEFAULT_FONT, DEFAULT_LABEL_FONT, EMPTY, ETCHED, FIVE_FIVE_INSETS, FIVE_INSETS, FOCUS_BORDER, focusEnabled, focusLostProcessing, FORE_COLOR, GBL, JCOMBO_DIM, JCOMBO_FONT, JLIST_DIM, keyTypeProcessing, LABEL_DIM, LABEL_PANEL_DIM, LABEL_TEXT, labelPanel, model, nameLabel, OUTER_PANEL_GBC, outerPanel, STRING_BACK_COLOR, titledBorder1, valueEditor, WIDGET_GBC, WIDGET_PANEL_GBC, widgetPanel, WIGET_PANEL_DIM, ZERO_INSETS |
| 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 | |
|---|---|
MagPDF_ParameterEditor()
Constructor |
|
MagPDF_ParameterEditor(Parameter model)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent ae)
This function is called when the user click for the ParameterListParameterEditor Button |
ParameterListEditor |
createMagFreqDistParameterEditor()
Clones the Mag ParamList and the makes the parameters visible based on the selected Distribution. |
String |
getMagDistName()
returns the MagDistName |
ParameterListEditor |
getMagFreqDistParameterEditor()
Function that returns the magFreDist Param as a parameterListeditor so that user can display it as the panel in window rather then button. |
double |
getMax()
returns the Max of the magnitude for thr distribution |
double |
getMin()
returns the Min of the magnitude for the distribution |
String |
getName()
Gets the name attribute of the MagDistGuiBean object |
int |
getNum()
returns the Number of magnitudes for the Distribution |
Parameter |
getParameter(String name)
Returns each parameter for the MagFreqDist |
ParameterList |
getParameterList()
returns the parameterlist |
ParameterList |
getParamterList()
returns the ParamterList for the MagfreqDistParameter |
protected void |
initParamList()
|
protected void |
jbInit()
Main GUI Initialization point. |
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 |
refreshParamEditor()
Called when the parameter has changed independently from the editor, such as with the ParameterWarningListener. |
void |
setMagDistFromParams()
Controller function. |
void |
setMagDistFromParams(SummedMagFreqDist summedDist,
String metadata)
Sets the MagDistParam to be SummedMagFreqDist |
void |
setMagFreqDistParamButtonVisible(boolean visible)
Checks whether you want to show the Mag Freq Dist Param Editor as button or a panel This function mostly come in handy if instead of displaying this parameter as the button user wants to show it as the Parameterlist in the panel. |
void |
setParameter(Parameter param)
Returns the parameter that is stored internally that this GUI widget is editing |
void |
setSummedDistPlotted(boolean sumDistPlotted)
Sets the Summed Dist plotted to be false or true based on |
protected void |
synchRequiredVisibleParameters()
Description of the Method |
| Methods inherited from class org.opensha.commons.param.editor.AbstractParameterEditorOld |
|---|
addWidget, focusGained, focusLost, getComponent, getOuterPanel, getParameter, getValue, getValueEditor, isFocusEnabled, keyPressed, keyReleased, keyTyped, makeConstantEditor, removeWidget, setEditorBorder, setEnabled, setFocusEnabled, setNameLabelToolTip, setParameterInEditor, setValue, setWidgetBorder, setWidgetObject, unableToSetValue, updateNameLabel |
| 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 |
| Methods inherited from interface org.opensha.sha.param.editor.MagDistParameterEditorAPI |
|---|
getParameter |
| Methods inherited from interface org.opensha.commons.param.editor.ParameterEditor |
|---|
isVisible, setVisible |
| Field Detail |
|---|
protected static final String C
protected static final boolean D
public static final String MAG_DIST_TITLE
| Constructor Detail |
|---|
public MagPDF_ParameterEditor()
public MagPDF_ParameterEditor(Parameter model)
| Method Detail |
|---|
public void setParameter(Parameter param)
setParameter in interface ParameterEditorsetParameter in interface MagDistParameterEditorAPIsetParameter in class AbstractParameterEditorOldpublic void actionPerformed(ActionEvent ae)
actionPerformed in interface ActionListenerae - public void setMagFreqDistParamButtonVisible(boolean visible)
setMagFreqDistParamButtonVisible in interface MagDistParameterEditorAPIvisible - : If it it true, button is visible else not visible
By default it is visiblepublic ParameterListEditor createMagFreqDistParameterEditor()
createMagFreqDistParameterEditor in interface MagDistParameterEditorAPIpublic ParameterListEditor getMagFreqDistParameterEditor()
getMagFreqDistParameterEditor in interface MagDistParameterEditorAPI
protected void jbInit()
throws Exception
jbInit in class AbstractParameterEditorOldExceptionpublic void refreshParamEditor()
refreshParamEditor in interface ParameterEditorrefreshParamEditor in interface MagDistParameterEditorAPIrefreshParamEditor in class AbstractParameterEditorOldprotected void initParamList()
protected void synchRequiredVisibleParameters()
throws ParameterException
ParameterException - Description of the Exceptionpublic String getName()
getName in class Componentpublic void parameterChange(ParameterChangeEvent event)
parameterChange in interface ParameterChangeListenerevent -
public void setMagDistFromParams()
throws ConstraintException
setMagDistFromParams in interface MagDistParameterEditorAPIConstraintException - Description of the Exception
public void setMagDistFromParams(SummedMagFreqDist summedDist,
String metadata)
throws UnsupportedOperationException
setMagDistFromParams in interface MagDistParameterEditorAPIConstraintException - Description of the Exception
UnsupportedOperationException
public void setSummedDistPlotted(boolean sumDistPlotted)
throws UnsupportedOperationException
setSummedDistPlotted in interface MagDistParameterEditorAPIsumDistPlotted - boolean
UnsupportedOperationExceptionpublic void parameterChangeFailed(ParameterChangeFailEvent e)
parameterChangeFailed in interface ParameterChangeFailListenere - Description of the Parameterpublic String getMagDistName()
getMagDistName in interface MagDistParameterEditorAPIpublic double getMin()
getMin in interface MagDistParameterEditorAPIpublic double getMax()
getMax in interface MagDistParameterEditorAPIpublic int getNum()
getNum in interface MagDistParameterEditorAPIpublic ParameterList getParamterList()
getParamterList in interface MagDistParameterEditorAPI
public Parameter getParameter(String name)
throws ParameterException
getParameter in interface MagDistParameterEditorAPIParameterExceptionpublic ParameterList getParameterList()
getParameterList in interface MagDistParameterEditorAPI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||