public class ChannelChooser
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
javax.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,edu.iris.Fissures.IfNetwork.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<edu.iris.Fissures.network.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<edu.iris.Fissures.network.StationImpl>> |
stationMap |
protected javax.swing.DefaultListModel<edu.iris.Fissures.network.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 |
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<edu.iris.Fissures.network.StationImpl> stations) |
void |
addStationSelectionListener(StationSelectionListener s) |
protected void |
addStationsFromThread(java.util.List<edu.iris.Fissures.network.StationImpl> sta)
Adds a stations, but using SwingUtilities.invokeLater.
|
void |
appendNetwork(NetworkFromSource netsource) |
protected void |
clearStations() |
void |
clearStationSelection() |
protected void |
clearStationsFromThread() |
void |
deselect(edu.iris.Fissures.IfNetwork.Station stat) |
protected void |
fireNetworkDataChangedEvent(NetworkFromSource netSource) |
protected void |
fireStationDataChangedEvent(edu.iris.Fissures.IfNetwork.Station[] stations) |
protected void |
fireStationDataClearedEvent() |
protected void |
fireStationSelectedEvent(javax.swing.event.ListSelectionEvent e) |
edu.iris.Fissures.IfNetwork.Channel |
getChannel(edu.iris.Fissures.IfNetwork.ChannelId chanId) |
protected edu.sc.seis.fissuresUtil.chooser.ChannelChooser.ChannelLoader |
getChannelLoader()
Get the value of channelLoader.
|
edu.iris.Fissures.IfNetwork.Channel[] |
getChannels() |
java.util.List<edu.iris.Fissures.network.ChannelImpl> |
getChannels(edu.iris.Fissures.network.StationImpl station) |
java.util.List<edu.iris.Fissures.network.ChannelImpl> |
getChannels(edu.iris.Fissures.network.StationImpl station,
edu.iris.Fissures.model.MicroSecondDate when) |
java.util.Map<ChannelChooserSource,java.util.List<edu.iris.Fissures.network.NetworkAttrImpl>> |
getNetDCToNetMap() |
java.util.List<ChannelChooserSource> |
getNetworkDCs() |
java.util.List<NetworkFromSource> |
getNetworks() |
java.lang.String[] |
getSelectedChanCodes()
returns selected items from channel list.
|
edu.iris.Fissures.network.ChannelImpl[] |
getSelectedChannels() |
edu.iris.Fissures.network.ChannelImpl[] |
getSelectedChannels(edu.iris.Fissures.model.MicroSecondDate when)
Gets the selected channels, but only if they overlap the given time.
|
java.util.List<NetworkFromSource> |
getSelectedNetworks() |
edu.iris.Fissures.network.StationImpl[] |
getSelectedStations() |
edu.iris.Fissures.network.StationImpl[] |
getSelectedStations(edu.iris.Fissures.model.MicroSecondDate when) |
ChannelChooserSource |
getSource(edu.iris.Fissures.IfNetwork.NetworkId netid) |
protected StationLoader |
getStationLoader()
Get the value of stationLoader.
|
edu.iris.Fissures.IfNetwork.Station[] |
getStations() |
static edu.iris.Fissures.network.StationImpl[] |
getStationsThatExistOnDate(edu.iris.Fissures.model.MicroSecondDate when,
edu.iris.Fissures.network.StationImpl[] in) |
void |
initFrame() |
boolean |
isSourceKnown(edu.iris.Fissures.IfNetwork.NetworkId netid) |
void |
recheckNetworkAvailability() |
void |
removeChannelSelectionListener(ChannelSelectionListener csl) |
void |
select(edu.iris.Fissures.IfNetwork.Station stat) |
void |
selectAllNetworks() |
void |
setAvailbleDataOrigin(edu.iris.Fissures.IfEvent.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(edu.iris.Fissures.IfNetwork.Station stat) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, 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, update
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, transferFocusDownCycle, validate, validateTree
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, 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, transferFocusUpCycle
protected 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<edu.iris.Fissures.network.StationImpl> stationNames
protected java.util.HashMap<java.lang.String,java.util.List<edu.iris.Fissures.network.StationImpl>> stationMap
protected javax.swing.DefaultListModel sites
protected javax.swing.DefaultListModel channels
protected javax.swing.DefaultListModel bandListModel
protected java.util.HashMap<java.lang.String,edu.iris.Fissures.IfNetwork.Channel> channelMap
protected java.util.HashMap<ChannelChooserSource,java.util.List<edu.iris.Fissures.network.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(edu.iris.Fissures.IfEvent.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<edu.iris.Fissures.network.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<edu.iris.Fissures.network.StationImpl> stations)
protected void addStationsFromThread(java.util.List<edu.iris.Fissures.network.StationImpl> sta)
public void addStationDataListener(StationDataListener s)
public void addStationSelectionListener(StationSelectionListener s)
protected void fireStationDataChangedEvent(edu.iris.Fissures.IfNetwork.Station[] stations)
protected void fireStationDataClearedEvent()
protected void fireStationSelectedEvent(javax.swing.event.ListSelectionEvent e)
public edu.iris.Fissures.IfNetwork.Station[] getStations()
protected void clearStations()
protected void clearStationsFromThread()
public edu.iris.Fissures.IfNetwork.Channel getChannel(edu.iris.Fissures.IfNetwork.ChannelId chanId)
public edu.iris.Fissures.IfNetwork.Channel[] getChannels()
public java.util.List<edu.iris.Fissures.network.ChannelImpl> getChannels(edu.iris.Fissures.network.StationImpl station) throws ChannelChooserException
ChannelChooserException
public java.util.List<edu.iris.Fissures.network.ChannelImpl> getChannels(edu.iris.Fissures.network.StationImpl station, edu.iris.Fissures.model.MicroSecondDate when) throws ChannelChooserException
ChannelChooserException
public java.lang.String[] getSelectedChanCodes()
public java.util.List<NetworkFromSource> getSelectedNetworks()
public edu.iris.Fissures.network.StationImpl[] getSelectedStations()
public edu.iris.Fissures.network.StationImpl[] getSelectedStations(edu.iris.Fissures.model.MicroSecondDate when)
public static edu.iris.Fissures.network.StationImpl[] getStationsThatExistOnDate(edu.iris.Fissures.model.MicroSecondDate when, edu.iris.Fissures.network.StationImpl[] in)
public void clearStationSelection()
public void toggleStationSelected(edu.iris.Fissures.IfNetwork.Station stat)
public void select(edu.iris.Fissures.IfNetwork.Station stat)
public void deselect(edu.iris.Fissures.IfNetwork.Station stat)
public boolean isSourceKnown(edu.iris.Fissures.IfNetwork.NetworkId netid)
public ChannelChooserSource getSource(edu.iris.Fissures.IfNetwork.NetworkId netid)
public edu.iris.Fissures.network.ChannelImpl[] getSelectedChannels() throws ChannelChooserException
ChannelChooserException
public edu.iris.Fissures.network.ChannelImpl[] getSelectedChannels(edu.iris.Fissures.model.MicroSecondDate when) throws ChannelChooserException
ChannelChooserException
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)