public class StationLayer extends MouseAdapterLayer implements StationDataListener, StationSelectionListener, AvailableStationDataListener, EQSelectionListener, EventDataListener
javax.swing.JComponent.AccessibleJComponentcurrentPopupaddAsBackground, AddAsBackgroundProperty, addToBeanContext, AddToBeanContextProperty, autoPalette, AutoPaletteProperty, beanContextChildSupport, DisplayPaletteCmd, DisplayPropertiesCmd, doHack, HidePaletteCmd, i18n, IDListeners, localHackList, lsListeners, palette, paletteListener, PrettyNameProperty, propertyPrefix, RedrawCmd, removable, RemovableProperty, RemoveableProperty, SWING_PACKAGE, windowSupportlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Constructor and Description |
|---|
StationLayer()
Adds this layer as a listener on station data arriving and station
selection occuring on the channel chooser being passed in.
|
| Modifier and Type | Method and Description |
|---|---|
static double |
calcDistEventFromLocation(double latitude,
double longitude,
edu.iris.Fissures.IfEvent.EventAccessOperations event) |
void |
eqSelectionChanged(EQSelectionEvent eqSelectionEvent)
Method eqSelectionChanged
|
void |
eventDataAppended(EQDataEvent eqDataEvent)
No impl here, only the eventDataCleared() method is needed
|
void |
eventDataChanged(EQDataEvent eqDataEvent)
No impl here, only the eventDataCleared() method is needed
|
void |
eventDataCleared()
Method eventDataCleared
|
java.lang.String[] |
getMouseModeServiceList()
Return a list of the modes that are interesting to the
MapMouseListener.
|
static java.lang.String |
getStationInfo(edu.iris.Fissures.IfNetwork.Station station,
edu.iris.Fissures.IfEvent.EventAccessOperations event) |
StationLoc[] |
getStationLocs() |
void |
honorRepaint(boolean honor) |
boolean |
mouseClicked(java.awt.event.MouseEvent e) |
boolean |
mouseMoved(java.awt.event.MouseEvent e) |
void |
paint(java.awt.Graphics g) |
void |
printStationLocs() |
void |
projectionChanged(com.bbn.openmap.event.ProjectionEvent e) |
void |
repaint() |
void |
stationAvailabiltyChanged(AvailableStationDataEvent e)
Method stationAvailabiltyChanged
|
void |
stationDataChanged(StationDataEvent s) |
void |
stationDataCleared() |
void |
stationSelectionChanged(StationSelectionEvent s) |
void |
toggleStationSelection(edu.iris.Fissures.IfNetwork.Station station) |
getMapMouseListener, maybeKillCurrentPopup, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleasedactionPerformed, addComponentListener, added, addInfoDisplayListener, addLayerStatusListener, addMouseListener, addVetoableChangeListener, childrenAdded, childrenRemoved, clearListeners, connectToBeanContext, createWindowSupport, finalize, findAndInit, findAndInit, findAndUndo, fireHideToolTip, fireHideToolTip, firePaletteEvent, fireRequestBrowserContent, fireRequestBrowserContent, fireRequestCursor, fireRequestInfoLine, fireRequestInfoLine, fireRequestInfoLine, fireRequestMessage, fireRequestMessage, fireRequestToolTip, fireRequestToolTip, fireRequestToolTip, fireRequestToolTip, fireRequestURL, fireRequestURL, fireStatusUpdate, fireStatusUpdate, fireVetoableChange, getAddAsBackground, getAddToBeanContext, getBeanContext, getGUI, getPackage, getPalette, getProjection, getProperties, getPropertyInfo, getPropertyPrefix, getWindowSupport, hidePalette, isRemovable, isRemoveable, notifyHideHack, removeComponentListener, removeConfirmed, removed, removeInfoDisplayListener, removeLayerStatusListener, removeVetoableChangeListener, renderDataForProjection, repaint, resetPalette, setAddAsBackground, setAddToBeanContext, setBeanContext, setName, setPaletteVisible, setProjection, setProjection, setProperties, setProperties, setPropertyPrefix, setRemovable, setRemoveable, setVisible, setWindowSupport, showPaletteaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, 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, unregisterKeyboardAction, update, updateUIadd, 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, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, 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, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic StationLayer()
public void paint(java.awt.Graphics g)
paint in class javax.swing.JComponentpublic void projectionChanged(com.bbn.openmap.event.ProjectionEvent e)
projectionChanged in interface com.bbn.openmap.event.ProjectionListenerprojectionChanged in class MouseAdapterLayerpublic void honorRepaint(boolean honor)
public void repaint()
repaint in class java.awt.Componentpublic void printStationLocs()
public StationLoc[] getStationLocs()
public void stationDataChanged(StationDataEvent s)
stationDataChanged in interface StationDataListenerpublic void stationDataCleared()
stationDataCleared in interface StationDataListenerpublic void stationSelectionChanged(StationSelectionEvent s)
stationSelectionChanged in interface StationSelectionListenerpublic void stationAvailabiltyChanged(AvailableStationDataEvent e)
stationAvailabiltyChanged in interface AvailableStationDataListenere - an AvailableStationDataEventpublic void eqSelectionChanged(EQSelectionEvent eqSelectionEvent)
eqSelectionChanged in interface EQSelectionListenereqSelectionEvent - an EQSelectionEventpublic void eventDataAppended(EQDataEvent eqDataEvent)
eventDataAppended in interface EventDataListenerpublic void eventDataChanged(EQDataEvent eqDataEvent)
eventDataChanged in interface EventDataListenerpublic void eventDataCleared()
eventDataCleared in interface EventDataListenerpublic java.lang.String[] getMouseModeServiceList()
MouseAdapterLayer
return new String[] {
SelectMouseMode.modeID
};
getMouseModeServiceList in interface com.bbn.openmap.event.MapMouseListenergetMouseModeServiceList in class MouseAdapterLayerNavMouseMode.modeID,
SelectMouseMode.modeID,
NullMouseMode.modeIDpublic boolean mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface com.bbn.openmap.event.MapMouseListenermouseClicked in class MouseAdapterLayerpublic void toggleStationSelection(edu.iris.Fissures.IfNetwork.Station station)
public boolean mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface com.bbn.openmap.event.MapMouseListenermouseMoved in class MouseAdapterLayerpublic static java.lang.String getStationInfo(edu.iris.Fissures.IfNetwork.Station station,
edu.iris.Fissures.IfEvent.EventAccessOperations event)
public static double calcDistEventFromLocation(double latitude,
double longitude,
edu.iris.Fissures.IfEvent.EventAccessOperations event)
throws edu.iris.Fissures.IfEvent.NoPreferredOrigin
edu.iris.Fissures.IfEvent.NoPreferredOrigin