public class PopupStationWindow extends javax.swing.JDialog implements java.awt.event.WindowListener, java.awt.event.WindowFocusListener, TrackerListener, java.awt.event.ActionListener, CloseOnLostFocusWindow
| Modifier and Type | Class and Description |
|---|---|
static class |
PopupStationWindow.SortOrder
Enum defining sorting order for multiple stations/objects at a single point.
|
javax.swing.JDialog.AccessibleJDialogjava.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityTypejava.awt.Window.AccessibleAWTWindow, java.awt.Window.TypeaccessibleContext, rootPane, rootPaneCheckingEnabledBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Invoked when the timer times out.
|
static java.lang.String |
getFormattedHurricaneState(HurricaneEnum he,
java.lang.Object ws)
Format the value of a hurricane attribute according to its type and YAAC's user preference settings.
|
static java.lang.String |
getFormattedState(java.lang.Enum e,
java.lang.Object ws)
Format the value of a weather attribute according to its type and YAAC's user preference settings.
|
static java.lang.String |
getFormattedWeatherState(WeatherEnum we,
java.lang.Object ws)
Format the value of a weather attribute according to its type and YAAC's user preference settings.
|
static PopupStationWindow.SortOrder |
getSortOrder()
Get the current order for sorting multiple stations in a PopupStationWindow.
|
void |
messageAdded(StationState ss,
int index,
AX25Message msg)
Called when a Message is added to the history for a station in the tracker.
|
void |
messageDeleted(StationState ss,
int index,
AX25Message msg)
Called when a AX25Message is deleted from the history for a station in the tracker.
|
static void |
setSortOrder(PopupStationWindow.SortOrder sortOrder)
Set the order for sorting multiple stations in a PopupStationWindow.
|
static void |
showPopupStationWindow(com.bbn.openmap.MapBean map,
java.util.ArrayList<StationState> stationList,
int x,
int y)
Create a PopupStationWindow for all the stations and objects that were on the clicked
position on the map.
|
static void |
showPopupStationWindow(com.bbn.openmap.MapBean map,
java.util.ArrayList<StationState> stationList,
int x,
int y,
boolean useLargeMenuFont)
Create a PopupStationWindow for all the stations and objects that were on the clicked
position on the map.
|
void |
stationAdded(StationState ss,
int index)
Called when a new station is initially added to the tracker.
|
void |
stationDeleted(StationState ss,
int index)
Called when an existing station is deleted from the tracker.
|
void |
stationUpdated(StationState ss)
Called when an existing station is updated with new information in the tracker.
|
void |
windowActivated(java.awt.event.WindowEvent e)
DO NOT CALL.
|
void |
windowClosed(java.awt.event.WindowEvent e)
DO NOT CALL.
|
void |
windowClosing(java.awt.event.WindowEvent e)
DO NOT CALL.
|
void |
windowDeactivated(java.awt.event.WindowEvent e)
DO NOT CALL.
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
DO NOT CALL.
|
void |
windowGainedFocus(java.awt.event.WindowEvent e)
DO NOT CALL.
|
void |
windowIconified(java.awt.event.WindowEvent e)
DO NOT CALL.
|
void |
windowLostFocus(java.awt.event.WindowEvent e)
DO NOT CALL.
|
void |
windowOpened(java.awt.event.WindowEvent e)
DO NOT CALL.
|
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateaddNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBackaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static void showPopupStationWindow(com.bbn.openmap.MapBean map,
java.util.ArrayList<StationState> stationList,
int x,
int y)
map - the MapBean to provide the display position of the popupstationList - the List of StationState objects to be displayedx - the X coordinate of the clicked position on the map to anchor the popupy - the Y coordinate of the clicked position on the map to anchor the popuppublic static void showPopupStationWindow(com.bbn.openmap.MapBean map,
java.util.ArrayList<StationState> stationList,
int x,
int y,
boolean useLargeMenuFont)
map - the MapBean to provide the display position of the popupstationList - the List of StationState objects to be displayedx - the X coordinate of the clicked position on the map to anchor the popupy - the Y coordinate of the clicked position on the map to anchor the popupuseLargeMenuFont - boolean true if popup menus should use larger fonts (for touchscreens, etc.)public static java.lang.String getFormattedState(java.lang.Enum e,
java.lang.Object ws)
e - Enum identifying the attribute to format and scalews - Object containing the raw APRS value of the attributepublic static java.lang.String getFormattedWeatherState(WeatherEnum we, java.lang.Object ws)
we - WeatherEnum identifying the attribute to format and scalews - Object containing the raw APRS value of the attributepublic static java.lang.String getFormattedHurricaneState(HurricaneEnum he, java.lang.Object ws)
he - HurricaneEnum identifying the attribute to format and scalews - Object containing the raw APRS value of the attributepublic void windowActivated(java.awt.event.WindowEvent e)
windowActivated in interface java.awt.event.WindowListenere - WindowEventpublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed in interface java.awt.event.WindowListenere - WindowEventpublic void windowClosing(java.awt.event.WindowEvent e)
windowClosing in interface java.awt.event.WindowListenere - WindowEventpublic void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated in interface java.awt.event.WindowListenere - WindowEventpublic void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified in interface java.awt.event.WindowListenere - WindowEventpublic void windowIconified(java.awt.event.WindowEvent e)
windowIconified in interface java.awt.event.WindowListenere - WindowEventpublic void windowOpened(java.awt.event.WindowEvent e)
windowOpened in interface java.awt.event.WindowListenere - WindowEventpublic void windowGainedFocus(java.awt.event.WindowEvent e)
windowGainedFocus in interface java.awt.event.WindowFocusListenere - WindowEventpublic void windowLostFocus(java.awt.event.WindowEvent e)
windowLostFocus in interface java.awt.event.WindowFocusListenere - WindowEventpublic void stationAdded(StationState ss, int index)
stationAdded in interface TrackerListenerss - StationState containing the station's information; the initial Message
will not yet be stored within the StationState objectindex - zero-based integer sequence number for this station in the StationTrackerpublic void stationUpdated(StationState ss)
stationUpdated in interface TrackerListenerss - StationState containing the station's information; the new Message
will not yet be stored within the StationState objectpublic void stationDeleted(StationState ss, int index)
stationDeleted in interface TrackerListenerss - StationState containing the station's informationindex - zero-based integer sequence number for this station in the StationTrackerpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void messageAdded(StationState ss, int index, AX25Message msg)
messageAdded in interface TrackerListenerss - StationState containing the station's informationindex - zero-based index of the message added to the StationState objectmsg - APRS Message object being added to the tracker; note that non-APRS packets
that can still be decoded (such as OpenTRAC) will also be passed
here; AX25Frames that cannot be decoded will pass null herepublic void messageDeleted(StationState ss, int index, AX25Message msg)
messageDeleted in interface TrackerListenerss - StationState containing the station's information; the AX25Message
will already be removed from the StationState objectindex - zero-based index of the message removed from the StationState objectmsg - APRS Message object being removed from the tracker; note that non-APRS packets
that can still be decoded (such as OpenTRAC) will also be passed
here; AX25Frames that cannot be decoded will pass null herepublic static PopupStationWindow.SortOrder getSortOrder()
public static void setSortOrder(PopupStationWindow.SortOrder sortOrder)
sortOrder - desired SortOrder