edu.sc.seis.fissuresUtil.chooser
Class ChannelChooser
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
edu.sc.seis.fissuresUtil.chooser.ChannelChooser
- All Implemented Interfaces:
- java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
public class ChannelChooser
- extends javax.swing.JPanel
- See Also:
- Serialized Form
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 |
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 |
ChannelChooser(VestingNetworkDC[] netDC)
|
ChannelChooser(VestingNetworkDC[] netDC,
boolean showSites)
|
ChannelChooser(VestingNetworkDC[] netdcgiven,
boolean showSites,
boolean showNetworks,
java.lang.String[] configuredNetworks)
|
ChannelChooser(VestingNetworkDC[] netdcgiven,
boolean showSites,
boolean showNetworks,
java.lang.String[] configuredNetworks,
java.lang.String[] selectableBand,
java.lang.String[] autoSelectBand)
|
ChannelChooser(VestingNetworkDC[] netdcgiven,
boolean showSites,
boolean showNetworks,
java.lang.String[] configuredNetworks,
java.lang.String[] selectableBand,
java.lang.String[] autoSelectBand,
int[] selectableOrientations,
int autoSelectedOrientation)
|
ChannelChooser(VestingNetworkDC[] netdcgiven,
boolean showSites,
java.lang.String[] configuredNetworks)
|
ChannelChooser(VestingNetworkDC[] netdcgiven,
boolean showSites,
java.lang.String[] configuredNetworks,
java.lang.String[] selectableBand,
java.lang.String[] autoSelectBand)
|
ChannelChooser(VestingNetworkDC[] netdcgiven,
boolean showSites,
java.lang.String[] configuredNetworks,
java.lang.String[] selectableBand,
java.lang.String[] autoSelectBand,
int[] selectableOrientations,
int autoSelectedOrientation)
|
ChannelChooser(VestingNetworkDC[] netdcgiven,
java.lang.String[] configuredNetworks)
|
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 |
showCodes
protected boolean showCodes
showNames
protected boolean showNames
codeIsFirst
protected boolean codeIsFirst
showSites
protected boolean showSites
showNetworks
protected boolean showNetworks
selectableBand
protected java.lang.String[] selectableBand
autoSelectBand
protected java.lang.String[] autoSelectBand
selectableOrientations
protected int[] selectableOrientations
autoSelectedOrientation
protected int autoSelectedOrientation
bundle
protected java.util.ResourceBundle bundle
BEST_CHANNELS
public static final int BEST_CHANNELS
- See Also:
- Constant Field Values
VERTICAL_ONLY
public static final int VERTICAL_ONLY
- See Also:
- Constant Field Values
HORIZONTAL_ONLY
public static final int HORIZONTAL_ONLY
- See Also:
- Constant Field Values
INDIVIDUAL_CHANNELS
public static final int INDIVIDUAL_CHANNELS
- See Also:
- Constant Field Values
THREE_COMPONENT
public static final int THREE_COMPONENT
- See Also:
- Constant Field Values
EXTREMELY_SHORT_PERIOD
public static final java.lang.String EXTREMELY_SHORT_PERIOD
- See Also:
- Constant Field Values
SHORT_PERIOD
public static final java.lang.String SHORT_PERIOD
- See Also:
- Constant Field Values
HIGH_BROAD_BAND
public static final java.lang.String HIGH_BROAD_BAND
- See Also:
- Constant Field Values
BROAD_BAND
public static final java.lang.String BROAD_BAND
- See Also:
- Constant Field Values
MID_PERIOD
public static final java.lang.String MID_PERIOD
- See Also:
- Constant Field Values
LONG_PERIOD
public static final java.lang.String LONG_PERIOD
- See Also:
- Constant Field Values
VERY_LONG_PERIOD
public static final java.lang.String VERY_LONG_PERIOD
- See Also:
- Constant Field Values
ULTRA_LONG_PERIOD
public static final java.lang.String ULTRA_LONG_PERIOD
- See Also:
- Constant Field Values
EXTREMELY_LONG_PERIOD
public static final java.lang.String EXTREMELY_LONG_PERIOD
- See Also:
- Constant Field Values
ADMINISTRATIVE
public static final java.lang.String ADMINISTRATIVE
- See Also:
- Constant Field Values
WEATHER_ENVIRONMENTAL
public static final java.lang.String WEATHER_ENVIRONMENTAL
- See Also:
- Constant Field Values
EXPERIMENTAL
public static final java.lang.String EXPERIMENTAL
- See Also:
- Constant Field Values
DEFAULT_SELECTABLE_ORIENTATIONS
public static final int[] DEFAULT_SELECTABLE_ORIENTATIONS
networkList
protected javax.swing.JList networkList
stationList
protected SortedStationJList stationList
siteList
protected javax.swing.JList siteList
orientationList
protected javax.swing.JList orientationList
channelList
protected javax.swing.JList channelList
progressBar
protected javax.swing.JProgressBar progressBar
stationAcceptors
protected java.util.LinkedList stationAcceptors
networks
protected javax.swing.DefaultListModel networks
stationNames
protected javax.swing.DefaultListModel stationNames
stationMap
protected java.util.HashMap stationMap
sites
protected javax.swing.DefaultListModel sites
channels
protected javax.swing.DefaultListModel channels
bandListModel
protected javax.swing.DefaultListModel bandListModel
channelMap
protected java.util.HashMap channelMap
netDCToNetMap
protected java.util.HashMap netDCToNetMap
netIdToNetMap
protected java.util.HashMap netIdToNetMap
ChannelChooser
public ChannelChooser(VestingNetworkDC[] netDC)
ChannelChooser
public ChannelChooser(VestingNetworkDC[] netDC,
boolean showSites)
ChannelChooser
public ChannelChooser(VestingNetworkDC[] netdcgiven,
java.lang.String[] configuredNetworks)
ChannelChooser
public ChannelChooser(VestingNetworkDC[] netdcgiven,
boolean showSites,
java.lang.String[] configuredNetworks)
ChannelChooser
public ChannelChooser(VestingNetworkDC[] netdcgiven,
boolean showSites,
boolean showNetworks,
java.lang.String[] configuredNetworks)
ChannelChooser
public ChannelChooser(VestingNetworkDC[] netdcgiven,
boolean showSites,
java.lang.String[] configuredNetworks,
java.lang.String[] selectableBand,
java.lang.String[] autoSelectBand)
ChannelChooser
public ChannelChooser(VestingNetworkDC[] netdcgiven,
boolean showSites,
boolean showNetworks,
java.lang.String[] configuredNetworks,
java.lang.String[] selectableBand,
java.lang.String[] autoSelectBand)
ChannelChooser
public ChannelChooser(VestingNetworkDC[] netdcgiven,
boolean showSites,
java.lang.String[] configuredNetworks,
java.lang.String[] selectableBand,
java.lang.String[] autoSelectBand,
int[] selectableOrientations,
int autoSelectedOrientation)
ChannelChooser
public ChannelChooser(VestingNetworkDC[] netdcgiven,
boolean showSites,
boolean showNetworks,
java.lang.String[] configuredNetworks,
java.lang.String[] selectableBand,
java.lang.String[] autoSelectBand,
int[] selectableOrientations,
int autoSelectedOrientation)
setSeismogramDC
public void setSeismogramDC(DataCenterRouter dcops)
setShowCodes
public void setShowCodes(boolean showCodes)
setAvailbleDataOrigin
public void setAvailbleDataOrigin(edu.iris.Fissures.IfEvent.Origin origin)
addAvailableStationDataListener
public void addAvailableStationDataListener(AvailableStationDataListener dataListener)
recheckNetworkAvailability
public void recheckNetworkAvailability()
setStationListCellRenderer
public void setStationListCellRenderer(javax.swing.ListCellRenderer r)
setNetworkListCellRenderer
public void setNetworkListCellRenderer(javax.swing.ListCellRenderer r)
getNetDCToNetMap
public java.util.Map getNetDCToNetMap()
setConfiguredNetworks
public void setConfiguredNetworks(java.lang.String[] configuredNetworks)
getNetworkDCs
public edu.iris.Fissures.IfNetwork.NetworkDCOperations[] getNetworkDCs()
setNetworkDCs
public void setNetworkDCs(VestingNetworkDC[] netdcgiven)
addStationAcceptor
public void addStationAcceptor(StationAcceptor sAccept)
initFrame
public void initFrame()
appendNetwork
public void appendNetwork(edu.iris.Fissures.IfNetwork.NetworkAccess net)
selectAllNetworks
public void selectAllNetworks()
getNetworks
public edu.iris.Fissures.IfNetwork.NetworkAccess[] getNetworks()
castNetworkArray
protected edu.iris.Fissures.IfNetwork.NetworkAccess[] castNetworkArray(java.lang.Object[] objArray)
addNetworkDataListener
public void addNetworkDataListener(NetworkDataListener s)
fireNetworkDataChangedEvent
protected void fireNetworkDataChangedEvent(edu.iris.Fissures.IfNetwork.NetworkAccess net)
addStations
protected void addStations(edu.iris.Fissures.IfNetwork.Station[] stations)
addStationsFromThread
protected void addStationsFromThread(edu.iris.Fissures.IfNetwork.Station[] sta)
- Adds a stations, but using SwingUtilities.invokeLater. This allows
threads beside the event dispatch thread to interact with the swing
widgets.
addStationDataListener
public void addStationDataListener(StationDataListener s)
addStationSelectionListener
public void addStationSelectionListener(StationSelectionListener s)
fireStationDataChangedEvent
protected void fireStationDataChangedEvent(edu.iris.Fissures.IfNetwork.Station[] stations)
fireStationDataClearedEvent
protected void fireStationDataClearedEvent()
fireStationSelectedEvent
protected void fireStationSelectedEvent(javax.swing.event.ListSelectionEvent e)
getStations
public edu.iris.Fissures.IfNetwork.Station[] getStations()
clearStations
protected void clearStations()
clearStationsFromThread
protected void clearStationsFromThread()
getChannels
public edu.iris.Fissures.IfNetwork.Channel[] getChannels()
getChannels
public edu.iris.Fissures.IfNetwork.Channel[] getChannels(edu.iris.Fissures.IfNetwork.Station station)
getChannels
public edu.iris.Fissures.IfNetwork.Channel[] getChannels(edu.iris.Fissures.IfNetwork.Station station,
edu.iris.Fissures.model.MicroSecondDate when)
getSelectedChanCodes
public java.lang.String[] getSelectedChanCodes()
- returns selected items from channel list. May be full codes like BHZ or
just band codes like B
getSelectedNetworks
public edu.iris.Fissures.IfNetwork.NetworkAccess[] getSelectedNetworks()
getSelectedStations
public edu.iris.Fissures.IfNetwork.Station[] getSelectedStations()
getSelectedStations
public edu.iris.Fissures.IfNetwork.Station[] getSelectedStations(edu.iris.Fissures.model.MicroSecondDate when)
getStationsThatExistOnDate
public static edu.iris.Fissures.IfNetwork.Station[] getStationsThatExistOnDate(edu.iris.Fissures.model.MicroSecondDate when,
edu.iris.Fissures.IfNetwork.Station[] in)
clearStationSelection
public void clearStationSelection()
toggleStationSelected
public void toggleStationSelected(edu.iris.Fissures.IfNetwork.Station stat)
select
public void select(edu.iris.Fissures.IfNetwork.Station stat)
deselect
public void deselect(edu.iris.Fissures.IfNetwork.Station stat)
isNetworkAccessKnown
public boolean isNetworkAccessKnown(edu.iris.Fissures.IfNetwork.NetworkId netid)
getNetworkAccess
public edu.iris.Fissures.IfNetwork.NetworkAccess getNetworkAccess(edu.iris.Fissures.IfNetwork.NetworkId netid)
getSelectedChannels
public edu.iris.Fissures.IfNetwork.Channel[] getSelectedChannels()
- Returns:
- selected channels whose stations are active now
getSelectedChannels
public edu.iris.Fissures.IfNetwork.Channel[] getSelectedChannels(edu.iris.Fissures.model.MicroSecondDate when)
- Gets the selected channels, but only if they overlap the given time.
getStationLoader
protected StationLoader getStationLoader()
- Get the value of stationLoader.
- Returns:
- value of stationLoader.
setStationLoader
protected void setStationLoader(StationLoader v)
- Set the value of stationLoader.
- Parameters:
v
- Value to assign to stationLoader.
getChannelLoader
protected edu.sc.seis.fissuresUtil.chooser.ChannelChooser.ChannelLoader getChannelLoader()
- Get the value of channelLoader.
- Returns:
- value of channelLoader.
setChannelLoader
protected void setChannelLoader(edu.sc.seis.fissuresUtil.chooser.ChannelChooser.ChannelLoader v)
- Set the value of channelLoader.
- Parameters:
v
- Value to assign to channelLoader.
setProgressOwner
protected void setProgressOwner(java.lang.Thread t)
- sets this thread as the owner of the progress bar. It is the only thread
that can update the progress bar. Also resets the value to 0;
setProgressValue
protected void setProgressValue(java.lang.Thread t,
int value)
setProgressMax
protected void setProgressMax(java.lang.Thread t,
int max)
addChannelSelectionListener
public void addChannelSelectionListener(ChannelSelectionListener csl)
removeChannelSelectionListener
public void removeChannelSelectionListener(ChannelSelectionListener csl)