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<java.lang.String,Channel> |
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<ChannelChooserSource,java.util.List<NetworkAttrImpl>> |
netDCToNetMap |
protected java.util.HashMap<java.lang.String,ChannelChooserSource> |
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.List<StationAcceptor> |
stationAcceptors |
protected SortedStationJList |
stationList |
protected java.util.HashMap<java.lang.String,java.util.List<StationImpl>> |
stationMap |
protected javax.swing.DefaultListModel<StationImpl> |
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(java.util.List<ChannelChooserSource> netDC) |
ChannelChooser(java.util.List<ChannelChooserSource> netDC,
boolean showSites) |
ChannelChooser(java.util.List<ChannelChooserSource> netdcgiven,
boolean showSites,
boolean showNetworks,
java.lang.String[] configuredNetworks) |
ChannelChooser(java.util.List<ChannelChooserSource> netdcgiven,
boolean showSites,
boolean showNetworks,
java.lang.String[] configuredNetworks,
java.lang.String[] selectableBand,
java.lang.String[] autoSelectBand) |
ChannelChooser(java.util.List<ChannelChooserSource> netdcgiven,
boolean showSites,
boolean showNetworks,
java.lang.String[] configuredNetworks,
java.lang.String[] selectableBand,
java.lang.String[] autoSelectBand,
int[] selectableOrientations,
int autoSelectedOrientation) |
ChannelChooser(java.util.List<ChannelChooserSource> netdcgiven,
boolean showSites,
java.lang.String[] configuredNetworks) |
ChannelChooser(java.util.List<ChannelChooserSource> netdcgiven,
boolean showSites,
java.lang.String[] configuredNetworks,
java.lang.String[] selectableBand,
java.lang.String[] autoSelectBand) |
ChannelChooser(java.util.List<ChannelChooserSource> netdcgiven,
boolean showSites,
java.lang.String[] configuredNetworks,
java.lang.String[] selectableBand,
java.lang.String[] autoSelectBand,
int[] selectableOrientations,
int autoSelectedOrientation) |
ChannelChooser(java.util.List<ChannelChooserSource> 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(java.util.List<StationImpl> stations) |
void |
addStationSelectionListener(StationSelectionListener s) |
protected void |
addStationsFromThread(java.util.List<StationImpl> sta)
Adds a stations, but using SwingUtilities.invokeLater.
|
void |
appendNetwork(NetworkFromSource netsource) |
protected void |
clearStations() |
void |
clearStationSelection() |
protected void |
clearStationsFromThread() |
void |
deselect(Station stat) |
protected void |
fireNetworkDataChangedEvent(NetworkFromSource netSource) |
protected void |
fireStationDataChangedEvent(Station[] stations) |
protected void |
fireStationDataClearedEvent() |
protected void |
fireStationSelectedEvent(javax.swing.event.ListSelectionEvent e) |
Channel |
getChannel(ChannelId chanId) |
protected edu.sc.seis.fissuresUtil.chooser.ChannelChooser.ChannelLoader |
getChannelLoader()
Get the value of channelLoader.
|
Channel[] |
getChannels() |
java.util.List<ChannelImpl> |
getChannels(StationImpl station) |
java.util.List<ChannelImpl> |
getChannels(StationImpl station,
MicroSecondDate when) |
java.util.Map<ChannelChooserSource,java.util.List<NetworkAttrImpl>> |
getNetDCToNetMap() |
java.util.List<ChannelChooserSource> |
getNetworkDCs() |
java.util.List<NetworkFromSource> |
getNetworks() |
java.lang.String[] |
getSelectedChanCodes()
returns selected items from channel list.
|
ChannelImpl[] |
getSelectedChannels() |
ChannelImpl[] |
getSelectedChannels(MicroSecondDate when)
Gets the selected channels, but only if they overlap the given time.
|
java.util.List<NetworkFromSource> |
getSelectedNetworks() |
StationImpl[] |
getSelectedStations() |
StationImpl[] |
getSelectedStations(MicroSecondDate when) |
ChannelChooserSource |
getSource(NetworkId netid) |
protected StationLoader |
getStationLoader()
Get the value of stationLoader.
|
Station[] |
getStations() |
static StationImpl[] |
getStationsThatExistOnDate(MicroSecondDate when,
StationImpl[] in) |
void |
initFrame() |
boolean |
isSourceKnown(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(java.util.List<ChannelChooserSource> 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(ChannelChooserSeisSource seismogramSourceLocator) |
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, hide, 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, 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.List<StationAcceptor> stationAcceptors
protected javax.swing.DefaultListModel networks
protected javax.swing.DefaultListModel<StationImpl> stationNames
protected java.util.HashMap<java.lang.String,java.util.List<StationImpl>> stationMap
protected javax.swing.DefaultListModel sites
protected javax.swing.DefaultListModel channels
protected javax.swing.DefaultListModel bandListModel
protected java.util.HashMap<java.lang.String,Channel> channelMap
protected java.util.HashMap<ChannelChooserSource,java.util.List<NetworkAttrImpl>> netDCToNetMap
protected java.util.HashMap<java.lang.String,ChannelChooserSource> netIdToNetMap
public ChannelChooser(java.util.List<ChannelChooserSource> netDC)
public ChannelChooser(java.util.List<ChannelChooserSource> netDC, boolean showSites)
public ChannelChooser(java.util.List<ChannelChooserSource> netdcgiven, java.lang.String[] configuredNetworks)
public ChannelChooser(java.util.List<ChannelChooserSource> netdcgiven, boolean showSites, java.lang.String[] configuredNetworks)
public ChannelChooser(java.util.List<ChannelChooserSource> netdcgiven, boolean showSites, boolean showNetworks, java.lang.String[] configuredNetworks)
public ChannelChooser(java.util.List<ChannelChooserSource> netdcgiven, boolean showSites, java.lang.String[] configuredNetworks, java.lang.String[] selectableBand, java.lang.String[] autoSelectBand)
public ChannelChooser(java.util.List<ChannelChooserSource> netdcgiven, boolean showSites, boolean showNetworks, java.lang.String[] configuredNetworks, java.lang.String[] selectableBand, java.lang.String[] autoSelectBand)
public ChannelChooser(java.util.List<ChannelChooserSource> netdcgiven, boolean showSites, java.lang.String[] configuredNetworks, java.lang.String[] selectableBand, java.lang.String[] autoSelectBand, int[] selectableOrientations, int autoSelectedOrientation)
public ChannelChooser(java.util.List<ChannelChooserSource> netdcgiven, boolean showSites, boolean showNetworks, java.lang.String[] configuredNetworks, java.lang.String[] selectableBand, java.lang.String[] autoSelectBand, int[] selectableOrientations, int autoSelectedOrientation)
public void setSeismogramDC(ChannelChooserSeisSource seismogramSourceLocator)
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<ChannelChooserSource,java.util.List<NetworkAttrImpl>> getNetDCToNetMap()
public void setConfiguredNetworks(java.lang.String[] configuredNetworks)
public java.util.List<ChannelChooserSource> getNetworkDCs()
public void setNetworkDCs(java.util.List<ChannelChooserSource> netdcgiven)
public void addStationAcceptor(StationAcceptor sAccept)
public void initFrame()
public void appendNetwork(NetworkFromSource netsource)
public void selectAllNetworks()
public java.util.List<NetworkFromSource> getNetworks()
public void addNetworkDataListener(NetworkDataListener s)
protected void fireNetworkDataChangedEvent(NetworkFromSource netSource)
protected void addStations(java.util.List<StationImpl> stations)
protected void addStationsFromThread(java.util.List<StationImpl> 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 java.util.List<ChannelImpl> getChannels(StationImpl station) throws ChannelChooserException
ChannelChooserExceptionpublic java.util.List<ChannelImpl> getChannels(StationImpl station, MicroSecondDate when) throws ChannelChooserException
ChannelChooserExceptionpublic java.lang.String[] getSelectedChanCodes()
public java.util.List<NetworkFromSource> getSelectedNetworks()
public StationImpl[] getSelectedStations()
public StationImpl[] getSelectedStations(MicroSecondDate when)
public static StationImpl[] getStationsThatExistOnDate(MicroSecondDate when, StationImpl[] in)
public void clearStationSelection()
public void toggleStationSelected(Station stat)
public void select(Station stat)
public void deselect(Station stat)
public boolean isSourceKnown(NetworkId netid)
public ChannelChooserSource getSource(NetworkId netid)
public ChannelImpl[] getSelectedChannels() throws ChannelChooserException
ChannelChooserExceptionpublic ChannelImpl[] getSelectedChannels(MicroSecondDate when) throws ChannelChooserException
ChannelChooserExceptionprotected 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)