org.opensha.sha.gui.beans
Class EqkRuptureCreationPanel
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.opensha.sha.gui.beans.EqkRuptureCreationPanel
- All Implemented Interfaces:
- ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ParameterChangeListener, EqkRupSelectorGuiBeanAPI
public class EqkRuptureCreationPanel
- extends JPanel
- implements EqkRupSelectorGuiBeanAPI, ParameterChangeListener
Title: EqkRuptureCreationPanel
Description:
- Version:
- 1.0
- Author:
- : Ned Field, Nitin Gupta and Vipin Gupta
- See Also:
- Serialized Form
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
MAG_PARAM_NAME
public static final String MAG_PARAM_NAME
- See Also:
- Constant Field Values
RAKE_PARAM_NAME
public static final String RAKE_PARAM_NAME
- See Also:
- Constant Field Values
DIP_PARAM_NAME
public static final String DIP_PARAM_NAME
- See Also:
- Constant Field Values
SRC_TYP_PARAM_NAME
public static final String SRC_TYP_PARAM_NAME
- See Also:
- Constant Field Values
POINT_SRC_NAME
public static final String POINT_SRC_NAME
- See Also:
- Constant Field Values
FINITE_SRC_NAME
public static final String FINITE_SRC_NAME
- See Also:
- Constant Field Values
FAULT_PARAM_NAME
public static final String FAULT_PARAM_NAME
- See Also:
- Constant Field Values
LOCATION_PARAM_NAME
public static final String LOCATION_PARAM_NAME
- See Also:
- Constant Field Values
HYPOCENTER_LOCATION_PARAM_NAME
public static final String HYPOCENTER_LOCATION_PARAM_NAME
- See Also:
- Constant Field Values
SHOW_HYPOCENTER_LOCATION_PARAM_NAME
public static final String SHOW_HYPOCENTER_LOCATION_PARAM_NAME
- See Also:
- Constant Field Values
NULL_HYPOCENTER_STRING
public static final String NULL_HYPOCENTER_STRING
- See Also:
- Constant Field Values
EqkRuptureCreationPanel
public EqkRuptureCreationPanel()
parameterChange
public void parameterChange(ParameterChangeEvent event)
- This is the main function of this interface. Any time a control
paramater or independent paramater is changed by the user in a GUI this
function is called, and a paramater change event is passed in. This
function then determines what to do with the information ie. show some
paramaters, set some as invisible, basically control the paramater
lists.
- Specified by:
parameterChange in interface ParameterChangeListener
- Parameters:
event -
getHypocenterLocation
public Location getHypocenterLocation()
- Specified by:
getHypocenterLocation in interface EqkRupSelectorGuiBeanAPI
- Returns:
- the Hypocenter Location if selected else return null
getRupture
public EqkRupture getRupture()
- Specified by:
getRupture in interface EqkRupSelectorGuiBeanAPI
- Returns:
- the EqkRupture Object
getTimespanMetadataString
public String getTimespanMetadataString()
- Specified by:
getTimespanMetadataString in interface EqkRupSelectorGuiBeanAPI
- Returns:
- the timespan Metadata for the selected Rupture.
If no timespan exists for the rupture then it returns the Message:
"No Timespan exists for the selected Rupture".
getEqkRuptureSelectorPanel
public EqkRupSelectorGuiBeanAPI getEqkRuptureSelectorPanel()
- Specified by:
getEqkRuptureSelectorPanel in interface EqkRupSelectorGuiBeanAPI
- Returns:
- the panel which allows user to select Eqk rupture from existing
ERF models
getParameterListMetadataString
public String getParameterListMetadataString()
- Specified by:
getParameterListMetadataString in interface EqkRupSelectorGuiBeanAPI
- Returns:
- the Metadata String of parameters that constitute the making of this
ERF_RupSelectorGUI bean.
getParameter
public Parameter getParameter(String paramName)
- Specified by:
getParameter in interface EqkRupSelectorGuiBeanAPI
- Parameters:
paramName -
- Returns:
- the parameter from the parameterList with paramName.
getParameterEditor
public ParameterEditor getParameterEditor(String paramName)
- Specified by:
getParameterEditor in interface EqkRupSelectorGuiBeanAPI
- Parameters:
paramName -
- Returns:
- the ParameterEditor associated with paramName
getVisibleParameterList
public ParameterList getVisibleParameterList()
- Specified by:
getVisibleParameterList in interface EqkRupSelectorGuiBeanAPI
- Returns:
- the visible parameters in the list
getParameterListEditor
public ParameterListEditor getParameterListEditor()
- Specified by:
getParameterListEditor in interface EqkRupSelectorGuiBeanAPI
- Returns:
- the parameterlist editor