public class ChannelChooser
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADMINISTRATIVE |
protected java.lang.String[] |
autoSelectBand |
protected int |
autoSelectedOrientation |
protected javax.swing.DefaultListModel |
bandListModel |
static int |
BEST_CHANNELS |
protected BestChannelUtil |
bestChanUtil |
static java.lang.String |
BROAD_BAND |
protected java.util.ResourceBundle |
bundle |
protected javax.swing.JList |
channelList |
protected java.util.HashMap |
channelMap |
protected javax.swing.DefaultListModel |
channels |
protected boolean |
codeIsFirst |
static int[] |
DEFAULT_SELECTABLE_ORIENTATIONS |
static java.lang.String |
EXPERIMENTAL |
static java.lang.String |
EXTREMELY_LONG_PERIOD |
static java.lang.String |
EXTREMELY_SHORT_PERIOD |
static java.lang.String |
HIGH_BROAD_BAND |
static int |
HORIZONTAL_ONLY |
static int |
INDIVIDUAL_CHANNELS |
static java.lang.String |
LONG_PERIOD |
static java.lang.String |
MID_PERIOD |
protected java.util.HashMap |
netDCToNetMap |
protected java.util.HashMap |
netIdToNetMap |
protected javax.swing.JList |
networkList |
protected javax.swing.DefaultListModel |
networks |
protected javax.swing.JList |
orientationList |
protected javax.swing.JProgressBar |
progressBar |
protected java.lang.String[] |
selectableBand |
protected int[] |
selectableOrientations |
static java.lang.String |
SHORT_PERIOD |
protected boolean |
showCodes |
protected boolean |
showNames |
protected boolean |
showNetworks |
protected boolean |
showSites |
protected javax.swing.JList |
siteList |
protected javax.swing.DefaultListModel |
sites |
protected java.util.LinkedList |
stationAcceptors |
protected SortedStationJList |
stationList |
protected java.util.HashMap |
stationMap |
protected javax.swing.DefaultListModel |
stationNames |
static int |
THREE_COMPONENT |
static java.lang.String |
ULTRA_LONG_PERIOD |
static int |
VERTICAL_ONLY |
static java.lang.String |
VERY_LONG_PERIOD |
static java.lang.String |
WEATHER_ENVIRONMENTAL |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAvailableStationDataListener(AvailableStationDataListener dataListener) |
void |
addChannelSelectionListener(ChannelSelectionListener csl) |
void |
addNetworkDataListener(NetworkDataListener s) |
void |
addStationAcceptor(StationAcceptor sAccept) |
void |
addStationDataListener(StationDataListener s) |
protected void |
addStations(Station[] stations) |
void |
addStationSelectionListener(StationSelectionListener s) |
protected void |
addStationsFromThread(Station[] sta)
Adds a stations, but using SwingUtilities.invokeLater.
|
void |
appendNetwork(NetworkAccess net) |
protected NetworkAccess[] |
castNetworkArray(java.lang.Object[] objArray) |
protected void |
clearStations() |
void |
clearStationSelection() |
protected void |
clearStationsFromThread() |
void |
deselect(Station stat) |
protected void |
fireNetworkDataChangedEvent(NetworkAccess net) |
protected void |
fireStationDataChangedEvent(Station[] stations) |
protected void |
fireStationDataClearedEvent() |
protected void |
fireStationSelectedEvent(javax.swing.event.ListSelectionEvent e) |
protected edu.sc.seis.fissuresUtil.chooser.ChannelChooser.ChannelLoader |
getChannelLoader()
Get the value of channelLoader.
|
Channel[] |
getChannels() |
Channel[] |
getChannels(Station station) |
Channel[] |
getChannels(Station station,
MicroSecondDate when) |
java.util.Map |
getNetDCToNetMap() |
NetworkAccess |
getNetworkAccess(NetworkId netid) |
NetworkDCOperations[] |
getNetworkDCs() |
NetworkAccess[] |
getNetworks() |
java.lang.String[] |
getSelectedChanCodes()
returns selected items from channel list.
|
Channel[] |
getSelectedChannels() |
Channel[] |
getSelectedChannels(MicroSecondDate when)
Gets the selected channels, but only if they overlap the given time.
|
NetworkAccess[] |
getSelectedNetworks() |
Station[] |
getSelectedStations() |
Station[] |
getSelectedStations(MicroSecondDate when) |
protected StationLoader |
getStationLoader()
Get the value of stationLoader.
|
Station[] |
getStations() |
static Station[] |
getStationsThatExistOnDate(MicroSecondDate when,
Station[] in) |
void |
initFrame() |
boolean |
isNetworkAccessKnown(NetworkId netid) |
void |
recheckNetworkAvailability() |
void |
removeChannelSelectionListener(ChannelSelectionListener csl) |
void |
select(Station stat) |
void |
selectAllNetworks() |
void |
setAvailbleDataOrigin(Origin origin) |
protected void |
setChannelLoader(edu.sc.seis.fissuresUtil.chooser.ChannelChooser.ChannelLoader v)
Set the value of channelLoader.
|
void |
setConfiguredNetworks(java.lang.String[] configuredNetworks) |
void |
setNetworkDCs(VestingNetworkDC[] netdcgiven) |
void |
setNetworkListCellRenderer(javax.swing.ListCellRenderer r) |
protected void |
setProgressMax(java.lang.Thread t,
int max) |
protected void |
setProgressOwner(java.lang.Thread t)
sets this thread as the owner of the progress bar.
|
protected void |
setProgressValue(java.lang.Thread t,
int value) |
void |
setSeismogramDC(DataCenterRouter dcops) |
void |
setShowCodes(boolean showCodes) |
void |
setStationListCellRenderer(javax.swing.ListCellRenderer r) |
protected void |
setStationLoader(StationLoader v)
Set the value of stationLoader.
|
void |
toggleStationSelected(Station stat) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, isPaintingOrigin, 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, updateadd, 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, transferFocusDownCycle, validate, validateTreeaction, 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, transferFocusBackward, transferFocusUpCycleprotected BestChannelUtil bestChanUtil
protected boolean showCodes
protected boolean showNames
protected boolean codeIsFirst
protected boolean showSites
protected boolean showNetworks
protected java.lang.String[] selectableBand
protected java.lang.String[] autoSelectBand
protected int[] selectableOrientations
protected int autoSelectedOrientation
protected java.util.ResourceBundle bundle
public static final int BEST_CHANNELS
public static final int VERTICAL_ONLY
public static final int HORIZONTAL_ONLY
public static final int INDIVIDUAL_CHANNELS
public static final int THREE_COMPONENT
public static final java.lang.String EXTREMELY_SHORT_PERIOD
public static final java.lang.String SHORT_PERIOD
public static final java.lang.String HIGH_BROAD_BAND
public static final java.lang.String BROAD_BAND
public static final java.lang.String MID_PERIOD
public static final java.lang.String LONG_PERIOD
public static final java.lang.String VERY_LONG_PERIOD
public static final java.lang.String ULTRA_LONG_PERIOD
public static final java.lang.String EXTREMELY_LONG_PERIOD
public static final java.lang.String ADMINISTRATIVE
public static final java.lang.String WEATHER_ENVIRONMENTAL
public static final java.lang.String EXPERIMENTAL
public static final int[] DEFAULT_SELECTABLE_ORIENTATIONS
protected javax.swing.JList networkList
protected SortedStationJList stationList
protected javax.swing.JList siteList
protected javax.swing.JList orientationList
protected javax.swing.JList channelList
protected javax.swing.JProgressBar progressBar
protected java.util.LinkedList stationAcceptors
protected javax.swing.DefaultListModel networks
protected javax.swing.DefaultListModel stationNames
protected java.util.HashMap stationMap
protected javax.swing.DefaultListModel sites
protected javax.swing.DefaultListModel channels
protected javax.swing.DefaultListModel bandListModel
protected java.util.HashMap channelMap
protected java.util.HashMap netDCToNetMap
protected java.util.HashMap netIdToNetMap
public ChannelChooser(VestingNetworkDC[] netDC)
public ChannelChooser(VestingNetworkDC[] netDC, boolean showSites)
public ChannelChooser(VestingNetworkDC[] netdcgiven, java.lang.String[] configuredNetworks)
public ChannelChooser(VestingNetworkDC[] netdcgiven, boolean showSites, java.lang.String[] configuredNetworks)
public ChannelChooser(VestingNetworkDC[] netdcgiven, boolean showSites, boolean showNetworks, java.lang.String[] configuredNetworks)
public ChannelChooser(VestingNetworkDC[] netdcgiven, boolean showSites, java.lang.String[] configuredNetworks, java.lang.String[] selectableBand, java.lang.String[] autoSelectBand)
public ChannelChooser(VestingNetworkDC[] netdcgiven, boolean showSites, boolean showNetworks, java.lang.String[] configuredNetworks, java.lang.String[] selectableBand, java.lang.String[] autoSelectBand)
public ChannelChooser(VestingNetworkDC[] netdcgiven, boolean showSites, java.lang.String[] configuredNetworks, java.lang.String[] selectableBand, java.lang.String[] autoSelectBand, int[] selectableOrientations, int autoSelectedOrientation)
public ChannelChooser(VestingNetworkDC[] netdcgiven, boolean showSites, boolean showNetworks, java.lang.String[] configuredNetworks, java.lang.String[] selectableBand, java.lang.String[] autoSelectBand, int[] selectableOrientations, int autoSelectedOrientation)
public void setSeismogramDC(DataCenterRouter dcops)
public void setShowCodes(boolean showCodes)
public void setAvailbleDataOrigin(Origin origin)
public void addAvailableStationDataListener(AvailableStationDataListener dataListener)
public void recheckNetworkAvailability()
public void setStationListCellRenderer(javax.swing.ListCellRenderer r)
public void setNetworkListCellRenderer(javax.swing.ListCellRenderer r)
public java.util.Map getNetDCToNetMap()
public void setConfiguredNetworks(java.lang.String[] configuredNetworks)
public NetworkDCOperations[] getNetworkDCs()
public void setNetworkDCs(VestingNetworkDC[] netdcgiven)
public void addStationAcceptor(StationAcceptor sAccept)
public void initFrame()
public void appendNetwork(NetworkAccess net)
public void selectAllNetworks()
public NetworkAccess[] getNetworks()
protected NetworkAccess[] castNetworkArray(java.lang.Object[] objArray)
public void addNetworkDataListener(NetworkDataListener s)
protected void fireNetworkDataChangedEvent(NetworkAccess net)
protected void addStations(Station[] stations)
protected void addStationsFromThread(Station[] sta)
public void addStationDataListener(StationDataListener s)
public void addStationSelectionListener(StationSelectionListener s)
protected void fireStationDataChangedEvent(Station[] stations)
protected void fireStationDataClearedEvent()
protected void fireStationSelectedEvent(javax.swing.event.ListSelectionEvent e)
public Station[] getStations()
protected void clearStations()
protected void clearStationsFromThread()
public Channel[] getChannels()
public Channel[] getChannels(Station station, MicroSecondDate when)
public java.lang.String[] getSelectedChanCodes()
public NetworkAccess[] getSelectedNetworks()
public Station[] getSelectedStations()
public Station[] getSelectedStations(MicroSecondDate when)
public static Station[] getStationsThatExistOnDate(MicroSecondDate when, Station[] in)
public void clearStationSelection()
public void toggleStationSelected(Station stat)
public void select(Station stat)
public void deselect(Station stat)
public boolean isNetworkAccessKnown(NetworkId netid)
public NetworkAccess getNetworkAccess(NetworkId netid)
public Channel[] getSelectedChannels()
public Channel[] getSelectedChannels(MicroSecondDate when)
protected StationLoader getStationLoader()
protected void setStationLoader(StationLoader v)
v - Value to assign to stationLoader.protected edu.sc.seis.fissuresUtil.chooser.ChannelChooser.ChannelLoader getChannelLoader()
protected void setChannelLoader(edu.sc.seis.fissuresUtil.chooser.ChannelChooser.ChannelLoader v)
v - Value to assign to channelLoader.protected void setProgressOwner(java.lang.Thread t)
protected void setProgressValue(java.lang.Thread t,
int value)
protected void setProgressMax(java.lang.Thread t,
int max)
public void addChannelSelectionListener(ChannelSelectionListener csl)
public void removeChannelSelectionListener(ChannelSelectionListener csl)