org.opensha.sha.gui.beans
Class EqkRuptureCreationPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by 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

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
static String DIP_PARAM_NAME
           
static String FAULT_PARAM_NAME
           
static String FINITE_SRC_NAME
           
static String HYPOCENTER_LOCATION_PARAM_NAME
           
static String LOCATION_PARAM_NAME
           
static String MAG_PARAM_NAME
           
static String NULL_HYPOCENTER_STRING
           
static String POINT_SRC_NAME
           
static String RAKE_PARAM_NAME
           
static String SHOW_HYPOCENTER_LOCATION_PARAM_NAME
           
static String SRC_TYP_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
EqkRuptureCreationPanel()
           
 
Method Summary
 EqkRupSelectorGuiBeanAPI getEqkRuptureSelectorPanel()
           
 Location getHypocenterLocation()
           
 Parameter getParameter(String paramName)
           
 ParameterEditor getParameterEditor(String paramName)
           
 ParameterListEditor getParameterListEditor()
           
 String getParameterListMetadataString()
           
 EqkRupture getRupture()
           
 String getTimespanMetadataString()
           
 ParameterList getVisibleParameterList()
           
 void parameterChange(ParameterChangeEvent event)
          This is the main function of this interface.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

EqkRuptureCreationPanel

public EqkRuptureCreationPanel()
Method Detail

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