Interface GeoMapGuiIfc

All Known Implementing Classes:
GeographicalMap

public interface GeoMapGuiIfc
This interface extends the GeoMapIfc to add a few methods that require knowledge of the underlying GUI map implementation.
Author:
Andrew Pavlin, KA2DDO
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Action string for homing to own station.
    static final String
    Action string for panning east a small fraction of the map.
    static final String
    Action string for panning north a small fraction of the map.
    static final String
    Action string for panning south a small fraction of the map.
    static final String
    Action string for panning west a small fraction of the map.
    static final String
    Action string for panning east a large fraction of the map.
    static final String
    Action string for panning north a large fraction of the map.
    static final String
    Action string for panning south a large fraction of the map.
    static final String
    Action string for panning west a large fraction of the map.
    static final String
    Action string for zooming in from the main keyboard.
    static final String
    Action string for zooming in from the numeric keypad.
    static final String
    Action string for zooming out from the main keyboard.
    static final String
    Action string for zooming out from the numeric keypad.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the Image used in the title bar of this map widget.
    Get the screen coordinates of the (0,0) point of this map widget.
    com.bbn.openmap.MapBean
    Get the OpenMap MapBean for this map widget.
    com.bbn.openmap.MouseDelegator
    Get the OpenMap MouseDelegator for this map widget.
    Get the OSMLayer of this map widget.
    Get the dimensions of this map widget.
    Get the TopoLayer of this map widget.
    Get the java.awt.Window containing this map widget.
    boolean
    Report whether the map should automatically pan to keep the local station centered on the map.
    boolean
    Report if the displays are in night mode.
    void
    registerMapKeystrokeActions(int modifiers, InputMap inputMap, ActionMap actionMap)
    Register the keystrokes that can be used to move this object's map around.
    void
    setCenter(double lat, double lon)
    Set the current center position of the map.
    void
    setMapAutoCentering(boolean isAutoCentered)
    Specify whether the map should automatically pan to keep the local station centered on the map.
  • Field Details

  • Method Details

    • getMapBean

      com.bbn.openmap.MapBean getMapBean()
      Get the OpenMap MapBean for this map widget.
      Returns:
      MapBean
    • getOSMLayer

      OSMLayer getOSMLayer()
      Get the OSMLayer of this map widget.
      Returns:
      OSMLayer
    • getIconImage

      Image getIconImage()
      Get the Image used in the title bar of this map widget.
      Returns:
      Image
    • getSize

      Dimension getSize()
      Get the dimensions of this map widget.
      Returns:
      Dimension
    • getLocationOnScreen

      Point getLocationOnScreen()
      Get the screen coordinates of the (0,0) point of this map widget.
      Returns:
      Point
    • getTopoLayer

      TopoLayer getTopoLayer()
      Get the TopoLayer of this map widget.
      Returns:
      TopoLayer
    • getWindow

      Window getWindow()
      Get the java.awt.Window containing this map widget.
      Returns:
      Window
    • getMouseDelegator

      com.bbn.openmap.MouseDelegator getMouseDelegator()
      Get the OpenMap MouseDelegator for this map widget.
      Returns:
      MouseDelegator
    • isMapAutoCentered

      boolean isMapAutoCentered()
      Report whether the map should automatically pan to keep the local station centered on the map.
      Returns:
      boolean true if map should auto-center, false otherwise
    • setMapAutoCentering

      void setMapAutoCentering(boolean isAutoCentered)
      Specify whether the map should automatically pan to keep the local station centered on the map.
      Parameters:
      isAutoCentered - boolean true if map should auto-center, false otherwise
    • isNightMode

      boolean isNightMode()
      Report if the displays are in night mode.
      Returns:
      boolean true if in night mode
    • setCenter

      void setCenter(double lat, double lon)
      Set the current center position of the map.
      Parameters:
      lat - latitude in degrees North
      lon - longitude in degrees East
    • registerMapKeystrokeActions

      void registerMapKeystrokeActions(int modifiers, InputMap inputMap, ActionMap actionMap)
      Register the keystrokes that can be used to move this object's map around. Presumably, this will be called on the map itself, but may also be called on other widgets (such as the LineOfSightPane) that will take over keyboard focus from the map but still affect the map.
      Parameters:
      modifiers - int KeyEvent modifiers (in case we have a conflict with mouse and key strokes)
      inputMap - InputMap of component(s) to add hot-keys to
      actionMap - ActionMap of component(s) to add hot-keys to