public interface GeoMapIfc
Modifier and Type | Method and Description |
---|---|
void |
displayAttentionAlert(double latitude,
double longitude,
AX25Message.Precedence precedence)
Display an AttentionAlert (flashing arrows) on the map for a particular position.
|
void |
flushFileCache()
Flush all caches of File objects referencing map data.
|
double |
getBottomLatitude()
Get the latitude of the bottom edge of the map.
|
double |
getCenterLatitude()
Get the latitude of the current center of the map.
|
double |
getCenterLongitude()
Get the longitude of the current center of the map.
|
double |
getLeftLongitude()
Get the longitude of the left edge of the map.
|
double |
getRightLongitude()
Get the longitude of the right edge of the map.
|
float |
getScale()
Get the current scale factor of the map.
|
double |
getTopLatitude()
Get the latitude of the top edge of the map.
|
float |
getZoomScale()
Get the current scale of the map in current
DistanceUnit s. |
boolean |
isAutoLoadMapTiles()
Report whether map tiles will be auto-downloaded (if the author's website can be reached) for any tiles
that have not already been downloaded.
|
boolean |
isDontRotateIcons()
Report whether mobile station icons should be rotated to indicate the direction
of station travel (bearing).
|
boolean |
isDrawAliasInsteadOfCallsign()
Report whether alias should be drawn instead of callsign should be drawn for each station/object
if an alias is defined for the station/object.
|
boolean |
isDrawAmbiguityCircle()
Report whether a translucent ambiguity circle is drawn behind each
station or object to indicate the area over which it could be located, given
the precision of the position information reported.
|
boolean |
isDrawCallsign()
Report whether callsign label should be drawn for each station/object.
|
boolean |
isDrawDoubleSizedSymbols()
Report if symbols are being drawn double-sized.
|
boolean |
isDrawItemStatus()
Report whether a color-coded "halo" is drawn around each station or object icon indicating
its status as one of the APRSdos categories: fixed, mobile, deadreckoned, old,
emergency-reporting, locally-controlled Object, or other station's Object.
|
boolean |
isDrawMicEStatusCircles()
Report whether color-coded circles indicating Mic-E status codes
are be drawn around stations reporting those codes.
|
boolean |
isDrawRangeCircles()
Report whether radio range circles are being drawn for stations reporting
or implying transmission range limits.
|
boolean |
isDrawSelf()
Report whether the local station is plotted on the map.
|
boolean |
isDrawSelfLikeOther()
Report whether local station is drawn like any other station (using its
APRS symbol icon) or as crosshairs or a pointer making it obvious where the
station is on the map.
|
boolean |
isMapAutoCentered()
Report whether the map should automatically pan to keep the local station
centered on the map.
|
default boolean |
isMapCenteredOnAlerts()
Specify whether this map should be re-centered on AttentionAlerts of EMERGENCY or ROUTINE
precedence.
|
boolean |
isNightMode()
Report if the displays are in night mode.
|
boolean |
isShowLabelsInEnglish()
Report whether map labels should be displayed in English if the default name is in some other locale
and OpenStreetMap provides an English translation.
|
boolean |
isShowUnlabeledWays()
Report if unlabeled and untyped map features should be displayed.
|
void |
loadGpsLog()
Load a GPS file into a map overlay.
|
void |
locateASpecificStation(java.util.ArrayList<StationState> matchList,
java.lang.String callsign)
Locate a specific station on the map window.
|
void |
refresh()
Force the map to immediately regenerate itself based on current state data.
|
void |
regenerateStations()
Force the station renderer layer to regenerate its overlay immediately.
|
void |
setAutoLoadMapTiles(boolean autoLoadMapTiles)
Specify whether missing OpenStreetMap imported tiles should be automatically downloaded from the author's
website.
|
void |
setCenter(double lat,
double lon)
Set the current center position of the map.
|
void |
setCenter(com.bbn.openmap.proj.coords.LatLonPoint p)
Set the current center position of the map.
|
void |
setDontRotateIcons(boolean dontRotateIcons)
Specify whether mobile station icons should be rotated to indicate the direction
of station travel (bearing).
|
void |
setDrawAliasInsteadOfCallsign(boolean drawAliasInsteadOfCallsign)
Specify whether alias should be drawn instead of callsign should be drawn for each station/object
if an alias is defined for the station/object.
|
void |
setDrawAmbiguityCircle(boolean drawAmbiguityCircle)
Specify whether a translucent ambiguity circle should be drawn behind each
station or object to indicate the area over which it could be located, given
the precision of the position information reported.
|
void |
setDrawCallsign(boolean drawCallsign)
Specify whether callsign labels should be drawn for each station/object.
|
void |
setDrawDoubleSizedSymbols(boolean drawDoubleSizedSymbols)
Specify whether symbols should be drawn double-sized (32x32 pixels) instead of single-sized (16x16).
|
void |
setDrawItemStatus(boolean drawItemStatus)
Specify whether a color-coded "halo" should be drawn around each station or object icon indicating
its status as one of the APRSdos categories: fixed, mobile, deadreckoned, old,
emergency-reporting, locally-controlled Object, or other station's Object.
|
void |
setDrawMicEStatusCircles(boolean drawMicEStatusCircles)
Specify whether color-coded circles indicating Mic-E status codes
should be drawn around stations reporting those codes.
|
void |
setDrawRangeCircles(boolean drawRangeCircles)
Specify whether range circles should be drawn around stations reporting
or implying transmission range limits.
|
void |
setDrawSelf(boolean drawSelf)
Specify whether the local station should be plotted on the map.
|
void |
setDrawSelfLikeOther(boolean drawSelfLikeOther)
Specify whether local station should be drawn like any other station (using its
APRS symbol icon) or as crosshairs or a pointer making it obvious where the
station is on the map.
|
void |
setMapAutoCentering(boolean isAutoCentered)
Specify whether the map should automatically pan to keep the local station
centered on the map.
|
void |
setMemoryGCPanelVisible(boolean visible)
Change the visibility of the memory usage status monitor.
|
void |
setNightMode(boolean isNight)
Specify that the displays should be in night mode (black backgrounds with white text/lines, for not
ruining the night vision of the operator).
|
void |
setScale(float scale)
Change the scale of the map.
|
void |
setShowLabelsInEnglish(boolean showLabelsInEnglish)
Specify whether map labels should be displayed in English if the default name is in some other locale
and OpenStreetMap provides an English translation.
|
void |
setShowUnlabeledWays(boolean showUnlabeledWays)
Specify if unlabeled and untyped map features should be displayed.
|
void |
setVisible(boolean visible)
Specify whether the main (map) display window should be visible.
|
void |
toFront()
Push the map GUI window to the foreground by whatever means the underlying GUI toolkit uses.
|
void |
zoomPanToSelectedFeature(GTNWrapper gtnWrapper)
Zoom and pan the map so the specified map feature nearly fills the map.
|
void setVisible(boolean visible)
visible
- boolean true if map window should be visible, false if notvoid toFront()
boolean isMapAutoCentered()
void setScale(float scale)
scale
- new scaling factorfloat getScale()
float getZoomScale()
DistanceUnit
s.void setCenter(double lat, double lon)
lat
- latitude in degrees Northlon
- longitude in degrees Eastvoid setCenter(com.bbn.openmap.proj.coords.LatLonPoint p)
p
- LatLonPoint for new centerdouble getCenterLatitude()
double getCenterLongitude()
double getTopLatitude()
double getLeftLongitude()
double getBottomLatitude()
double getRightLongitude()
void setMapAutoCentering(boolean isAutoCentered)
isAutoCentered
- boolean true if map should auto-center, false otherwisevoid zoomPanToSelectedFeature(GTNWrapper gtnWrapper)
gtnWrapper
- GTNWrapper around the GenericTaggedNode
to be seenvoid setNightMode(boolean isNight)
isNight
- boolean true if should be in night modeboolean isNightMode()
void refresh()
void regenerateStations()
void setMemoryGCPanelVisible(boolean visible)
visible
- boolean true if memory status monitor should be visiblevoid loadGpsLog()
boolean isShowUnlabeledWays()
void setShowUnlabeledWays(boolean showUnlabeledWays)
showUnlabeledWays
- boolean true if unlabeled/untyped map elements should be plottedboolean isShowLabelsInEnglish()
void setShowLabelsInEnglish(boolean showLabelsInEnglish)
showLabelsInEnglish
- boolean true if English labels should be usedboolean isAutoLoadMapTiles()
void setAutoLoadMapTiles(boolean autoLoadMapTiles)
autoLoadMapTiles
- boolean true to enable auto-downloadboolean isDrawRangeCircles()
void setDrawRangeCircles(boolean drawRangeCircles)
drawRangeCircles
- boolean true if range circles should be drawnboolean isDrawMicEStatusCircles()
void setDrawMicEStatusCircles(boolean drawMicEStatusCircles)
drawMicEStatusCircles
- boolean true if Mic-E status color circles should be drawnboolean isDrawSelf()
void setDrawSelf(boolean drawSelf)
drawSelf
- boolean true if local station should be drawnboolean isDrawSelfLikeOther()
isDrawSelf()
void setDrawSelfLikeOther(boolean drawSelfLikeOther)
drawSelfLikeOther
- boolean true to use APRS symbol, or false to use crosshairs
for fixed station or pointer arrowhead for moving stationsetDrawSelf(boolean)
boolean isDrawItemStatus()
StationState.SpecialState
void setDrawItemStatus(boolean drawItemStatus)
drawItemStatus
- boolean true if status halo should be drawmStationState.SpecialState
boolean isDrawAmbiguityCircle()
void setDrawAmbiguityCircle(boolean drawAmbiguityCircle)
drawAmbiguityCircle
- boolean true if ambiguity circles should be plottedboolean isDrawCallsign()
void setDrawCallsign(boolean drawCallsign)
drawCallsign
- boolean true if callsign label should be drawn on mapboolean isDrawAliasInsteadOfCallsign()
void setDrawAliasInsteadOfCallsign(boolean drawAliasInsteadOfCallsign)
drawAliasInsteadOfCallsign
- boolean true if alias should be drawn instead of callsignboolean isDrawDoubleSizedSymbols()
void setDrawDoubleSizedSymbols(boolean drawDoubleSizedSymbols)
drawDoubleSizedSymbols
- boolean true if symbols should be rendered double-sizeboolean isDontRotateIcons()
void setDontRotateIcons(boolean dontRotateIcons)
dontRotateIcons
- boolean true if icons should not be rotatedvoid flushFileCache()
void locateASpecificStation(java.util.ArrayList<StationState> matchList, java.lang.String callsign)
matchList
- ArrayList of StationStates to locatecallsign
- String callsign or tactical alias of the located stationvoid displayAttentionAlert(double latitude, double longitude, AX25Message.Precedence precedence)
latitude
- double fractional degrees Northlongitude
- double fraction degrees Eastprecedence
- code for color level to use; ROUTINE is used for station locatesdefault boolean isMapCenteredOnAlerts()