Class PopupStationWindow

All Implemented Interfaces:
ActionListener, WindowFocusListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, TrackerListener, CloseOnLostFocusWindow

This class defines a popup window with information about a selected list of stations.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Method Details

    • showPopupStationWindow

      public static void showPopupStationWindow(com.bbn.openmap.MapBean map, 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.
      Parameters:
      map - the MapBean to provide the display position of the popup
      stationList - the List of StationState objects to be displayed
      x - the X coordinate of the clicked position on the map to anchor the popup
      y - the Y coordinate of the clicked position on the map to anchor the popup
    • showPopupStationWindow

      public static void showPopupStationWindow(com.bbn.openmap.MapBean map, 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.
      Parameters:
      map - the MapBean to provide the display position of the popup
      stationList - the List of StationState objects to be displayed
      x - the X coordinate of the clicked position on the map to anchor the popup
      y - the Y coordinate of the clicked position on the map to anchor the popup
      useLargeMenuFont - boolean true if popup menus should use larger fonts (for touchscreens, etc.)
    • getFormattedState

      public static String getFormattedState(Enum e, Object ws)
      Format the value of a weather attribute according to its type and YAAC's user preference settings.
      Parameters:
      e - Enum identifying the attribute to format and scale
      ws - Object containing the raw APRS value of the attribute
      Returns:
      formatted text String of the value
    • getFormattedWeatherState

      public static String getFormattedWeatherState(WeatherEnum we, Object ws)
      Format the value of a weather attribute according to its type and YAAC's user preference settings.
      Parameters:
      we - WeatherEnum identifying the attribute to format and scale
      ws - Object containing the raw APRS value of the attribute
      Returns:
      formatted text String of the value
    • getFormattedHurricaneState

      public static String getFormattedHurricaneState(HurricaneEnum he, Object ws)
      Format the value of a hurricane attribute according to its type and YAAC's user preference settings.
      Parameters:
      he - HurricaneEnum identifying the attribute to format and scale
      ws - Object containing the raw APRS value of the attribute
      Returns:
      formatted text String of the value
    • windowActivated

      public void windowActivated(WindowEvent e)
      DO NOT CALL. No-op.
      Specified by:
      windowActivated in interface WindowListener
      Parameters:
      e - WindowEvent
    • windowClosed

      public void windowClosed(WindowEvent e)
      DO NOT CALL. Invoked when PopupStationWindow is disposed.
      Specified by:
      windowClosed in interface WindowListener
      Parameters:
      e - WindowEvent
    • windowClosing

      public void windowClosing(WindowEvent e)
      DO NOT CALL. No-op.
      Specified by:
      windowClosing in interface WindowListener
      Parameters:
      e - WindowEvent
    • windowDeactivated

      public void windowDeactivated(WindowEvent e)
      DO NOT CALL. No-op.
      Specified by:
      windowDeactivated in interface WindowListener
      Parameters:
      e - WindowEvent
    • windowDeiconified

      public void windowDeiconified(WindowEvent e)
      DO NOT CALL. No-op.
      Specified by:
      windowDeiconified in interface WindowListener
      Parameters:
      e - WindowEvent
    • windowIconified

      public void windowIconified(WindowEvent e)
      DO NOT CALL. No-op.
      Specified by:
      windowIconified in interface WindowListener
      Parameters:
      e - WindowEvent
    • windowOpened

      public void windowOpened(WindowEvent e)
      DO NOT CALL. No-op.
      Specified by:
      windowOpened in interface WindowListener
      Parameters:
      e - WindowEvent
    • windowGainedFocus

      public void windowGainedFocus(WindowEvent e)
      DO NOT CALL. No-op.
      Specified by:
      windowGainedFocus in interface WindowFocusListener
      Parameters:
      e - WindowEvent
    • windowLostFocus

      public void windowLostFocus(WindowEvent e)
      DO NOT CALL. Invoked when PopupStationWindow loses focus.
      Specified by:
      windowLostFocus in interface WindowFocusListener
      Parameters:
      e - WindowEvent
    • stationAdded

      public void stationAdded(StationState ss, int index)
      Called when a new station is initially added to the tracker.
      Specified by:
      stationAdded in interface TrackerListener
      Parameters:
      ss - StationState containing the station's information; the initial Message will not yet be stored within the StationState object
      index - zero-based integer sequence number for this station in the StationTracker
    • stationUpdated

      public void stationUpdated(StationState ss)
      Called when an existing station is updated with new information in the tracker.
      Specified by:
      stationUpdated in interface TrackerListener
      Parameters:
      ss - StationState containing the station's information; the new Message will not yet be stored within the StationState object
    • stationDeleted

      public void stationDeleted(StationState ss, int index)
      Called when an existing station is deleted from the tracker.
      Specified by:
      stationDeleted in interface TrackerListener
      Parameters:
      ss - StationState containing the station's information
      index - zero-based integer sequence number for this station in the StationTracker
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Invoked when the timer times out.
      Specified by:
      actionPerformed in interface ActionListener
    • messageAdded

      public void messageAdded(StationState ss, int index, AX25Message msg)
      Called when a Message is added to the history for a station in the tracker.
      Specified by:
      messageAdded in interface TrackerListener
      Parameters:
      ss - StationState containing the station's information
      index - zero-based index of the message added to the StationState object
      msg - 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 here
    • messageDeleted

      public void messageDeleted(StationState ss, int index, AX25Message msg)
      Called when a AX25Message is deleted from the history for a station in the tracker.
      Specified by:
      messageDeleted in interface TrackerListener
      Parameters:
      ss - StationState containing the station's information; the AX25Message will already be removed from the StationState object
      index - zero-based index of the message removed from the StationState object
      msg - 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 here