|
||||||||||
| 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.gui.SimpleFaultParameterEditorPanel
public class SimpleFaultParameterEditorPanel
Title: SimpleFaultParameterEditorPanel
Description: It is a more general parameter than just a Simple Fault Parameter Editor because actually inside it creates an object of the EvenlyGriddedSurface1EvenlyGriddedSurface1.
| 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 |
SIMPLE_FAULT_EDITOR_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 | |
|---|---|
SimpleFaultParameterEditorPanel()
|
|
SimpleFaultParameterEditorPanel(Parameter model)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent ae)
This function is called when Update Surface button is pressed |
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 |
setAll(double gridSpacing,
ArrayList lats,
ArrayList lons,
ArrayList dips,
ArrayList depths,
String faultType)
This sets all the fault data needed to make a evenly discretized fault |
void |
setAll(String name,
double gridSpacing,
ArrayList lats,
ArrayList lons,
ArrayList dips,
ArrayList depths,
String faultType)
This sets all the fault data needed to make a evenly discretized fault |
void |
setDipDirection(double value)
Sets the Average Dip Direction for the evenly discritized fault. |
void |
setEvenlyGriddedSurfaceFromParams()
creates the evenly gridded surface from the fault parameter. |
void |
setFaultNameVisible(boolean flag)
Sets the visibility for the fault name param |
void |
setParameter(Parameter param)
Set the values in the Parameters for the EvenlyGridded Surface |
| 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.commons.param.editor.ParameterEditor |
|---|
isVisible, setVisible |
| Field Detail |
|---|
protected static final String C
protected static final boolean D
public static final String SIMPLE_FAULT_EDITOR_TITLE
| Constructor Detail |
|---|
public SimpleFaultParameterEditorPanel()
public SimpleFaultParameterEditorPanel(Parameter model)
| Method Detail |
|---|
public void setParameter(Parameter param)
setParameter in interface ParameterEditorsetParameter in class AbstractParameterEditorOldpublic void refreshParamEditor()
refreshParamEditor in interface ParameterEditorrefreshParamEditor in class AbstractParameterEditorOld
public void setAll(String name,
double gridSpacing,
ArrayList lats,
ArrayList lons,
ArrayList dips,
ArrayList depths,
String faultType)
name - : Name of the faultgridSpacing - lats - : ArrayList of Latitudes for the discretized faultlons - : ArrayList of Longitudes for the discretized faultdips - : ArrayList of Dipsdepths - : ArrayList of Depths, which are one more then the number of dipsfaultType - : STIRLING or FRANKEL fault
public void setAll(double gridSpacing,
ArrayList lats,
ArrayList lons,
ArrayList dips,
ArrayList depths,
String faultType)
gridSpacing - lats - : ArrayList of Latitudes for the discretized faultlons - : ArrayList of Longitudes for the discretized faultdips - : ArrayList of Dipsdepths - : ArrayList of Depths, which are one more then the number of dipsfaultType - : STIRLING or FRANKEL faultpublic void setDipDirection(double value)
protected void jbInit()
throws Exception
jbInit in class AbstractParameterEditorOldExceptionpublic void setFaultNameVisible(boolean flag)
flag - public void parameterChange(ParameterChangeEvent event)
parameterChange in interface ParameterChangeListenerevent - public void parameterChangeFailed(ParameterChangeFailEvent e)
parameterChangeFailed in interface ParameterChangeFailListenere - Description of the Parameter
public void setEvenlyGriddedSurfaceFromParams()
throws RuntimeException
RuntimeExceptionpublic void actionPerformed(ActionEvent ae)
actionPerformed in interface ActionListenerae -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||