edu.sc.seis.fissuresUtil.display
Class BasicSeismogramDisplay

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.BasicSeismogramDisplay
All Implemented Interfaces:
Graphics2DRenderer, AmpListener, DataSetSeismogramReceptacle, TimeListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class BasicSeismogramDisplay
extends SeismogramDisplay
implements TimeListener, AmpListener

See Also:
Serialized Form

Nested Class Summary
 
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
static int PREFERRED_HEIGHT
           
static int PREFERRED_WIDTH
           
 
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
BasicSeismogramDisplay()
           
BasicSeismogramDisplay(AmpConfig ac)
           
BasicSeismogramDisplay(TimeConfig tc)
           
BasicSeismogramDisplay(TimeConfig tc, AmpConfig ac)
           
BasicSeismogramDisplay(TimeConfig tc, AmpConfig ac, java.awt.Color outlineColor)
           
 
Method Summary
 void add(DataSetSeismogram[] seismos)
          add adds all of the seismograms in the array to the receptacle
 void add(DataSetSeismogram[] seismos, java.awt.Color seisColor)
           
 void add(Drawable drawable)
           
 void addDrawablesFromAuxData(DataSetSeismogram seis)
           
 void addSelection(Selection newSelection)
           
 void addSoundPlay()
           
 void clear()
          clear removes all seismograms from this receptacle
 void clearSelections()
           
 boolean contains(DataSetSeismogram seismo)
          contains checks the receptacle for the presence of seismo
 int countDrawables()
           
 SeismogramDisplayProvider createCenter()
           
 void drawSeismograms(java.awt.Graphics2D g2, java.awt.Dimension size)
           
 AmpConfig getAmpConfig()
           
 java.awt.Color getColor()
           
 DrawableIterator getDrawables(java.awt.event.MouseEvent e)
           
 VerticalSeismogramDisplay getParentDisplay()
           
 int getPixel(edu.iris.Fissures.model.MicroSecondDate date)
           
 java.util.List getSeismogramList()
           
 DataSetSeismogram[] getSeismograms()
          returns all of the seismograms held by this receptacle
 MicroSecondTimeRange getTime()
           
 edu.iris.Fissures.model.MicroSecondDate getTime(int pixel)
           
static edu.iris.Fissures.model.MicroSecondDate getTime(int x, java.awt.Insets insets, java.awt.Dimension dim, MicroSecondTimeRange timeRange)
           
 TimeAmpLabel getTimeAmpLabel()
           
 TimeConfig getTimeConfig()
           
 DrawableIterator iterator(java.lang.Class drawableClass)
           
 void print()
           
 void remove()
          removes this Basic SeismogramDisplay from the parent.
 void remove(DataSetSeismogram[] seismos)
          remove removes all of the seismograms in this array
 void remove(Drawable drawable)
           
 void remove(Selection old)
           
 void removeSoundPlay()
           
 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[] seisToReset)
          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)
           
 void setGlobalizedAmpConfig(AmpConfig ac)
           
 void setIndividualizedAmpConfig(AmpConfig ac)
           
 void setOutlineColor(java.awt.Color c)
           
 void setParentDisplay(VerticalSeismogramDisplay disp)
           
 void setTimeConfig(TimeConfig tc)
           
 void updateAmp(AmpEvent event)
           
 void updateTime(TimeEvent event)
           
 
Methods inherited from class edu.sc.seis.fissuresUtil.display.SeismogramDisplay
add, getActiveFilters, getCenter, getCurrentTimeFlag, getDrawableSeismogram, getMouseForwarder, getMouseMotionForwarder, getNextColor, getPdfSeismogramsPerPage, hasConfiguredColors, outputToPDF, outputToPDF, outputToPDF, outputToPDF, outputToPDF, outputToPDF, outputToPDF, remove, renderToGraphics, setColors, setColors, setCurrentTimeFlag, setDrawNamesForNamedDrawables, setMouseForwarder, setMouseMotionForwarder, setPdfSeismogramsPerPage
 
Methods inherited from class edu.sc.seis.fissuresUtil.display.BorderedDisplay
add, add, add, add, clear, clearBorders, get, isFilled, outputToPNG, outputToPNG, outputToPNG, outputToPNG, removeAll, 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

PREFERRED_HEIGHT

public static final int PREFERRED_HEIGHT
See Also:
Constant Field Values

PREFERRED_WIDTH

public static final int PREFERRED_WIDTH
See Also:
Constant Field Values
Constructor Detail

BasicSeismogramDisplay

public BasicSeismogramDisplay()

BasicSeismogramDisplay

public BasicSeismogramDisplay(TimeConfig tc)

BasicSeismogramDisplay

public BasicSeismogramDisplay(AmpConfig ac)

BasicSeismogramDisplay

public BasicSeismogramDisplay(TimeConfig tc,
                              AmpConfig ac)

BasicSeismogramDisplay

public BasicSeismogramDisplay(TimeConfig tc,
                              AmpConfig ac,
                              java.awt.Color outlineColor)
Method Detail

createCenter

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

add

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

Specified by:
add in interface DataSetSeismogramReceptacle
Parameters:
seismos - a DataSetSeismogram[] containing seismograms to be added to this receptacle

add

public void add(DataSetSeismogram[] seismos,
                java.awt.Color seisColor)

remove

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

add

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

getDrawables

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

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

getSeismogramList

public java.util.List getSeismogramList()

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

Specified by:
reset in interface DataSetSeismogramReceptacle

reset

public void reset(DataSetSeismogram[] seisToReset)
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

Specified by:
reset in interface DataSetSeismogramReceptacle
Parameters:
seisToReset - a DataSetSeismogram[] value containing seismograms to be reset

getTime

public static edu.iris.Fissures.model.MicroSecondDate getTime(int x,
                                                              java.awt.Insets insets,
                                                              java.awt.Dimension dim,
                                                              MicroSecondTimeRange timeRange)

getParentDisplay

public VerticalSeismogramDisplay getParentDisplay()

setParentDisplay

public void setParentDisplay(VerticalSeismogramDisplay disp)

updateAmp

public void updateAmp(AmpEvent event)
Specified by:
updateAmp in interface AmpListener

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

updateTime

public void updateTime(TimeEvent event)
Specified by:
updateTime in interface TimeListener

setTimeConfig

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

getTimeConfig

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

getTime

public MicroSecondTimeRange getTime()

getTime

public edu.iris.Fissures.model.MicroSecondDate getTime(int pixel)

getPixel

public int getPixel(edu.iris.Fissures.model.MicroSecondDate date)

iterator

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

getTimeAmpLabel

public TimeAmpLabel getTimeAmpLabel()

clearSelections

public void clearSelections()

addSelection

public void addSelection(Selection newSelection)

remove

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

print

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

contains

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

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

clear

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

Specified by:
clear in interface DataSetSeismogramReceptacle

remove

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

Specified by:
remove in interface DataSetSeismogramReceptacle
Parameters:
seismos - DataSetSeismogram[] an array of seismograms to be removed

remove

public void remove()
removes this Basic SeismogramDisplay from the parent.


drawSeismograms

public void drawSeismograms(java.awt.Graphics2D g2,
                            java.awt.Dimension size)

addSoundPlay

public void addSoundPlay()

removeSoundPlay

public void removeSoundPlay()

addDrawablesFromAuxData

public void addDrawablesFromAuxData(DataSetSeismogram seis)

countDrawables

public int countDrawables()

getColor

public java.awt.Color getColor()
Overrides:
getColor in class SeismogramDisplay

setOutlineColor

public void setOutlineColor(java.awt.Color c)
Overrides:
setOutlineColor in class SeismogramDisplay