edu.sc.seis.fissuresUtil.display
Class VerticalSeismogramDisplay

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 edu.sc.seis.fissuresUtil.display.BorderedDisplay
                      extended by edu.sc.seis.fissuresUtil.display.SeismogramDisplay
                          extended by edu.sc.seis.fissuresUtil.display.VerticalSeismogramDisplay
All Implemented Interfaces:
Graphics2DRenderer, DataSetSeismogramReceptacle, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
Direct Known Subclasses:
ComponentSortedSeismogramDisplay, MultiSeismogramWindowDisplay, PickZoneDisplay, SingleSeismogramWindowDisplay, StationWindowDisplay

public abstract class VerticalSeismogramDisplay
extends SeismogramDisplay

VerticalSeismogramDisplay(VSD) is a JComponent that can contain multiple BasicSeismogramDisplays(BSD) Created: Tue Jun 4 10:52:23 2002

See Also:
Serialized Form

Nested Class Summary
protected  class VerticalSeismogramDisplay.CenterPanel
           
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  AmpConfig ac
           
protected  boolean globalizedAmp
           
protected  TimeConfig tc
           
 
Fields inherited from class edu.sc.seis.fissuresUtil.display.SeismogramDisplay
activeFilters, COLORS, drawNamesForNamedDrawables, isPDF, PRINTING
 
Fields inherited from class edu.sc.seis.fissuresUtil.display.BorderedDisplay
BOTTOM_CENTER, BOTTOM_LEFT, BOTTOM_RIGHT, CENTER, CENTER_LEFT, CENTER_RIGHT, TOP_CENTER, TOP_LEFT, TOP_RIGHT
 
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
VerticalSeismogramDisplay()
           
 
Method Summary
abstract  void add(DataSetSeismogram[] dss)
          add adds all of the seismograms in the array to the receptacle
 void add(Drawable drawable)
           
 void clear()
          clear removes all seismograms from this receptacle
 void clearSelections()
           
 boolean contains(DataSetSeismogram seismo)
          contains checks the receptacle for the presence of seismo
 SeismogramDisplayProvider createCenter()
           
 SeismogramDisplay get(DataSetSeismogram seismo)
           
 AmpConfig getAmpConfig()
           
 java.util.LinkedList getDisplays()
           
 DrawableIterator getDrawables(java.awt.event.MouseEvent e)
           
 DataSetSeismogram[] getSeismograms()
          returns all of the seismograms held by this receptacle
 TimeConfig getTimeConfig()
           
 DrawableIterator iterator(java.lang.Class drawableClass)
           
 void print()
           
 void remove(DataSetSeismogram[] dss)
          remove removes all of the seismograms in this array
 void remove(Drawable drawable)
           
 void remove(Selection selection)
           
 void removeAll()
          removeAll clears this display and all of its children, and if it has a parent, removes it from the parent as well
 boolean removeDisplay(BasicSeismogramDisplay display)
          removeDisplay removes a BSD from the VSD
 void reset()
          reset takes all of the seismograms contained in this receptacle and sets their state as if they had just been added to the receptacle and sets the instance varaibles of the receptacle back to their initial states
 void reset(DataSetSeismogram[] seismos)
          reset takes all of the seismograms in the array and sets their state as if they had just been initially added to the receptacle
 void setAmpConfig(AmpConfig ac)
           
protected  void setBorders()
           
 void setGlobalizedAmpConfig(AmpConfig ac)
           
 void setIndividualizedAmpConfig(AmpConfig ac)
           
 void setTimeConfig(TimeConfig config)
           
 
Methods inherited from class edu.sc.seis.fissuresUtil.display.SeismogramDisplay
add, getActiveFilters, getCenter, getColor, getCurrentTimeFlag, getDrawableSeismogram, getMouseForwarder, getMouseMotionForwarder, getNextColor, getPdfSeismogramsPerPage, hasConfiguredColors, outputToPDF, outputToPDF, outputToPDF, outputToPDF, outputToPDF, outputToPDF, outputToPDF, remove, renderToGraphics, setColors, setColors, setCurrentTimeFlag, setDrawNamesForNamedDrawables, setMouseForwarder, setMouseMotionForwarder, setOutlineColor, setPdfSeismogramsPerPage
 
Methods inherited from class edu.sc.seis.fissuresUtil.display.BorderedDisplay
add, add, add, add, clear, clearBorders, get, isFilled, outputToPNG, outputToPNG, outputToPNG, outputToPNG, renderToGraphics
 
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, 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, 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

globalizedAmp

protected boolean globalizedAmp

tc

protected TimeConfig tc

ac

protected AmpConfig ac
Constructor Detail

VerticalSeismogramDisplay

public VerticalSeismogramDisplay()
Method Detail

createCenter

public SeismogramDisplayProvider createCenter()
Specified by:
createCenter in class SeismogramDisplay

add

public abstract void add(DataSetSeismogram[] dss)
Description copied from interface: DataSetSeismogramReceptacle
add adds all of the seismograms in the array to the receptacle

Parameters:
dss - a DataSetSeismogram[] containing seismograms to be added to this receptacle

remove

public void remove(DataSetSeismogram[] dss)
Description copied from interface: DataSetSeismogramReceptacle
remove removes all of the seismograms in this array

Parameters:
dss - DataSetSeismogram[] an array of seismograms to be removed

contains

public boolean contains(DataSetSeismogram seismo)
Description copied from interface: DataSetSeismogramReceptacle
contains checks the receptacle for the presence of seismo

Parameters:
seismo - the seismogram whose presence is to be tested
Returns:
true if the receptacle contains seismo, false otherwise

get

public SeismogramDisplay get(DataSetSeismogram seismo)

add

public void add(Drawable drawable)
Specified by:
add in class SeismogramDisplay

remove

public void remove(Drawable drawable)
Specified by:
remove in class SeismogramDisplay

getDrawables

public DrawableIterator getDrawables(java.awt.event.MouseEvent e)
Specified by:
getDrawables in class SeismogramDisplay

getDisplays

public java.util.LinkedList getDisplays()

getSeismograms

public DataSetSeismogram[] getSeismograms()
Description copied from interface: DataSetSeismogramReceptacle
returns all of the seismograms held by this receptacle

Specified by:
getSeismograms in interface DataSetSeismogramReceptacle
Specified by:
getSeismograms in class SeismogramDisplay
Returns:
an array containing all of this receptacles seismograms

remove

public void remove(Selection selection)
Overrides:
remove in class SeismogramDisplay

iterator

public DrawableIterator iterator(java.lang.Class drawableClass)
Specified by:
iterator in class SeismogramDisplay

setBorders

protected void setBorders()

clearSelections

public void clearSelections()

clear

public void clear()
Description copied from interface: DataSetSeismogramReceptacle
clear removes all seismograms from this receptacle


print

public void print()
Specified by:
print in class SeismogramDisplay

removeAll

public void removeAll()
removeAll clears this display and all of its children, and if it has a parent, removes it from the parent as well

Overrides:
removeAll in class BorderedDisplay

removeDisplay

public boolean removeDisplay(BasicSeismogramDisplay display)
removeDisplay removes a BSD from the VSD

Parameters:
display - the BSD to be removed
Returns:
true if the display is removed

setAmpConfig

public void setAmpConfig(AmpConfig ac)
Specified by:
setAmpConfig in class SeismogramDisplay

setGlobalizedAmpConfig

public void setGlobalizedAmpConfig(AmpConfig ac)
Specified by:
setGlobalizedAmpConfig in class SeismogramDisplay

setIndividualizedAmpConfig

public void setIndividualizedAmpConfig(AmpConfig ac)
Specified by:
setIndividualizedAmpConfig in class SeismogramDisplay

getAmpConfig

public AmpConfig getAmpConfig()
Specified by:
getAmpConfig in class SeismogramDisplay

setTimeConfig

public void setTimeConfig(TimeConfig config)
Specified by:
setTimeConfig in class SeismogramDisplay

getTimeConfig

public TimeConfig getTimeConfig()
Specified by:
getTimeConfig in class SeismogramDisplay

reset

public void reset()
Description copied from interface: DataSetSeismogramReceptacle
reset takes all of the seismograms contained in this receptacle and sets their state as if they had just been added to the receptacle and sets the instance varaibles of the receptacle back to their initial states


reset

public void reset(DataSetSeismogram[] seismos)
Description copied from interface: DataSetSeismogramReceptacle
reset takes all of the seismograms in the array and sets their state as if they had just been initially added to the receptacle

Parameters:
seismos - a DataSetSeismogram[] value containing seismograms to be reset