public interface GeoMapGuiIfc
Modifier and Type | Interface and Description |
---|---|
static class |
GeoMapGuiIfc.GlassMapPane
Parent abstract class to allow a glass pane to be told about the MapBean in the overlain Window.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HOME
Action string for homing to own station.
|
static java.lang.String |
INCH_EAST
Action string for panning east a small fraction of the map.
|
static java.lang.String |
INCH_NORTH
Action string for panning north a small fraction of the map.
|
static java.lang.String |
INCH_SOUTH
Action string for panning south a small fraction of the map.
|
static java.lang.String |
INCH_WEST
Action string for panning west a small fraction of the map.
|
static java.lang.String |
PAN_EAST
Action string for panning east a large fraction of the map.
|
static java.lang.String |
PAN_NORTH
Action string for panning north a large fraction of the map.
|
static java.lang.String |
PAN_SOUTH
Action string for panning south a large fraction of the map.
|
static java.lang.String |
PAN_WEST
Action string for panning west a large fraction of the map.
|
static java.lang.String |
ZOOM_IN
Action string for zooming in from the main keyboard.
|
static java.lang.String |
ZOOM_IN_NP
Action string for zooming in from the numeric keypad.
|
static java.lang.String |
ZOOM_OUT
Action string for zooming out from the main keyboard.
|
static java.lang.String |
ZOOM_OUT_NP
Action string for zooming out from the numeric keypad.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Image |
getIconImage()
Get the Image used in the title bar of this map widget.
|
java.awt.Point |
getLocationOnScreen()
Get the screen coordinates of the (0,0) point of this map widget.
|
com.bbn.openmap.MapBean |
getMapBean()
Get the OpenMap MapBean for this map widget.
|
com.bbn.openmap.MouseDelegator |
getMouseDelegator()
Get the OpenMap MouseDelegator for this map widget.
|
OSMLayer |
getOSMLayer()
Get the OSMLayer of this map widget.
|
java.awt.Dimension |
getSize()
Get the dimensions of this map widget.
|
TopoLayer |
getTopoLayer()
Get the TopoLayer of this map widget.
|
java.awt.Window |
getWindow()
Get the java.awt.Window containing this map widget.
|
boolean |
isMapAutoCentered()
Report whether the map should automatically pan to keep the local station
centered on the map.
|
boolean |
isNightMode()
Report if the displays are in night mode.
|
void |
registerGlassPaneOverMap(GeoMapGuiIfc.GlassMapPane glassPane)
Put a glass pane over a MapBean.
|
void |
registerMapKeystrokeActions(int modifiers,
javax.swing.InputMap inputMap,
javax.swing.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.
|
static final java.lang.String ZOOM_IN
static final java.lang.String ZOOM_OUT
static final java.lang.String ZOOM_OUT_NP
static final java.lang.String ZOOM_IN_NP
static final java.lang.String HOME
static final java.lang.String PAN_SOUTH
static final java.lang.String PAN_NORTH
static final java.lang.String PAN_EAST
static final java.lang.String PAN_WEST
static final java.lang.String INCH_SOUTH
static final java.lang.String INCH_NORTH
static final java.lang.String INCH_EAST
static final java.lang.String INCH_WEST
com.bbn.openmap.MapBean getMapBean()
OSMLayer getOSMLayer()
java.awt.Image getIconImage()
java.awt.Dimension getSize()
java.awt.Point getLocationOnScreen()
TopoLayer getTopoLayer()
java.awt.Window getWindow()
com.bbn.openmap.MouseDelegator getMouseDelegator()
boolean isMapAutoCentered()
void setMapAutoCentering(boolean isAutoCentered)
isAutoCentered
- boolean true if map should auto-center, false otherwiseboolean isNightMode()
void setCenter(double lat, double lon)
lat
- latitude in degrees Northlon
- longitude in degrees Eastvoid registerMapKeystrokeActions(int modifiers, javax.swing.InputMap inputMap, javax.swing.ActionMap actionMap)
LineOfSightPane
) that will take over
keyboard focus from the map but still affect the map.modifiers
- int KeyEvent modifiers (in case we have a conflict with mouse and key strokes)inputMap
- InputMap of component(s) to add hot-keys toactionMap
- ActionMap of component(s) to add hot-keys tovoid registerGlassPaneOverMap(GeoMapGuiIfc.GlassMapPane glassPane)
glassPane
- GlassMapPane subclass to overlay the map window