public class GeographicalMap extends javax.swing.JFrame implements GpsDataListener, PortMgmtListener, ShutdownHandler, PrintableView, GeoMapIfc, FilterChangeListener, FirstWindowInitIfc
javax.swing.JFrame.AccessibleJFramejava.awt.Window.AccessibleAWTWindow, java.awt.Window.Type| Modifier and Type | Field and Description |
|---|---|
OSMLayer |
osmLayer
The layer that draws OpenStreetMap-based roads, water bodies, etc., on the map.
|
RasterMapOverlay |
rasterMapOverlay
The layer that draws raster image overlays on the map.
|
StationRenderer |
stationRenderer
The layer that draws APRS Stations and Objects on the map, along with decorations related to those Stations and
Objects (such as movement tracks, status color codes, labels, AttentionAlert pointers, etc.
|
TopoLayer |
topoLayer
The layer that draws topographic (terrain elevation) contour lines and colored regions on the map.
|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabledCROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Constructor and Description |
|---|
GeographicalMap(MainGui mainGui,
java.lang.String nameOfWindow)
Create the main window of YAAC, containing the geographic map, the menu bar, and a few other toolbar controls.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSpecificTrackStripe(java.lang.String identifier)
Add the identifier of a single station or object whose track stripe is to be plotted.
|
void |
clearAllSpecificTrackStripes()
Clear the plotting of all specific station/object track stripes.
|
java.awt.image.RenderedImage |
copyMap()
Make a screenshot copy of the current map.
|
void |
displayAttentionAlert(double latitude,
double longitude,
AX25Message.Precedence precedence)
Display an AttentionAlert (flashing arrows) on the map for a particular position.
|
void |
displayAttentionAlert(StationState ss)
Display a locate AttentionAlert (flashing arrows) on the map for a particular station or object.
|
void |
displayLocateAmenityDialog()
Display the Locate Amenity dialog, and handle user input to it.
|
void |
displayLocateLandmarkDialog()
Display the Locate Landmark dialog, and handle user input to it.
|
void |
editTopoColors()
Invoke an editor for adjusting the colors and elevation thresholds used to render topographic map layers.
|
void |
filterSettingsChanged(Filter changedFilter,
boolean changedByUser)
Called when the specified Filter's matching criteria have been changed.
|
java.awt.geom.Point2D |
getCenter()
Get the latitude/longitude coordinates of the center of the rendered 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.
|
long |
getLastElapsedPaintTime()
Return the amount of time (in milliseconds) for the last station render.
|
int |
getLastNumDrawnObjects()
Return the number of Objects (non-transmitters) rendered in the last station render.
|
int |
getLastNumDrawnStations()
Return the number of stations (transmitters) rendered in the last station render.
|
com.bbn.openmap.MapBean |
getMapBean()
Get the JavaBean that actually contains the map canvas.
|
com.bbn.openmap.gui.BasicMapPanel |
getMapPanel()
Get the panel containing the rendered map.
|
long |
getMaxAgeDRObject()
Get the maximum time that dead reckoning will be projected for an object (non-self-transmitter).
|
long |
getMaxAgeDRSpecialObject() |
long |
getMaxAgeDRStation()
Get the maximum time that dead reckoning will be projected for a station (self-transmitter).
|
long |
getMaxTrackDuration()
Get the maximum duration of a track stripe in milliseconds.
|
com.bbn.openmap.MouseDelegator |
getMouseDelegator() |
float |
getScale()
Get the current scale factor of the map.
|
void |
gpsDataUpdated(GPSDistributor distributor,
GpsFix currentFix,
boolean isLocal,
java.lang.String source)
Do not call.
|
void |
initializeWindowMenu(java.lang.Object item,
java.lang.Object view)
Create the entries on the dynamic Window menu on the menu bar corresponding to every window
except the one containing the menu bar.
|
void |
initMenuBar()
Phase 2 of initializing the GUI (stuff that needs the GUI property of the main YAAC
object to be already initialized).
|
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 |
isDrawAge()
Report whether the time interval since last receipt of a message from or
about a station or object is plotted below the station/object's name.
|
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 |
isDrawAllTrackStripes()
Indicate whether all moving stations should have track stripes plotted.
|
boolean |
isDrawAlohaCircle()
Report whether aloha circles (optimal maximum RF transmission range for the
local station before causing excessive collisions) are plotted on the map.
|
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 |
isDrawDeadObjects()
Report whether Objects that have been "killed" are plotted on the map.
|
boolean |
isDrawDeadReckoning()
Report whether deadreckoning position updates for moving stations and objects are
calculated and the positions offset and deadreckoning vectors plotted when the stations
and objecfts are drawn.
|
boolean |
isDrawDF()
Report whether direction-finding cones are plotted from stations
reporting DFS vector information
|
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 |
isDrawNWSMultiLine()
Report whether encoded polylines (generally used for National Weather Service
severe weather regions) are plotted on the map.
|
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 |
isDrawWeatherAsWeather()
Report whether weather stations are drawn as old-style weather map
circles with a flagged barb indicating wind direction and speed.
|
boolean |
isGraticuleVisible()
Indicate whether the graticule (latitude/longitude grid lines) are displayed on the map.
|
boolean |
isKeepSpecificallyTrackedStationsOnScreen()
Report whether the map should auto-pan to keep specifically tracked mobile stations on the map.
|
boolean |
isMapAutoCentered()
Report whether the map should automatically pan to keep the local station
centered on the map.
|
boolean |
isMemoryGCPanelVisible()
Report the current visibility of the MemoryGCPanel.
|
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 |
isShowTopoContours()
Report whether the topographic map should be rendered as contour lines.
|
boolean |
isShowTopoRegions()
Report whether the topographic map overlay should be displayed as filled regions.
|
boolean |
isShowUnlabeledWays()
Report if unlabeled and untyped map features should be displayed.
|
boolean |
isSpecificallyTracked(java.lang.String identifier)
Test if a given identifier is on the tracking list.
|
boolean |
isSpecificallyTracking()
Test if any identifiers are on the tracking list.
|
void |
loadDrawing()
Load drawing overlay.
|
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.
|
static java.awt.GridBagConstraints |
makeGBC(int x,
int y)
Convenience method to help build GridBagConstraints for any handlers created by
the Provider that are laid out with GridBagLayout, creating a cell position for
a 1x1 cell with left-aligned contents, weighted equally.
|
static java.awt.GridBagConstraints |
makeGBC(int x,
int y,
int w)
Convenience method to help build GridBagConstraints for any handlers created by
the Provider that are laid out with GridBagLayout, creating a cell position for
a 1x1 cell with left-aligned contents, weighted equally.
|
static java.awt.GridBagConstraints |
makeGBC(int x,
int y,
int w,
int h)
Convenience method to help build GridBagConstraints for any handlers created by
the Provider that are laid out with GridBagLayout, creating a cell position for
a 1x1 cell with left-aligned contents, weighted equally.
|
void |
moveObject(StationState ss,
ObjectReport or,
MoveObjectListener moveObjectListener)
Graphically drag a station or object across the map to a new location, updating
the object's position appropriately and converting a station to an object if needed.
|
void |
portCreated(PortConnector connector)
Do not call.
|
void |
portDeleted(PortConnector connector)
Do not call.
|
void |
printThisView()
Print this PrintableView to the Java printing subsystem.
|
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 |
regenerateTopo()
Force the topographic layer to regenerate its overlay immediately.
|
boolean |
removeSpecificTrackStripe(java.lang.String identifier)
Remove the identifier of a single station or object whose track stripe is no longer to be plotted.
|
void |
rotateView(double angleDeg) |
void |
satDataUpdated(GPSDistributor distributor,
SatelliteCatalog satCatalog,
boolean isLocal,
java.lang.String source)
Do not call.
|
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 |
setDrawAge(boolean drawAge)
Specify whether the time interval since last receipt of a message from or
about a station or object should be plotted below the station/object's name.
|
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 |
setDrawAllTrackStripes(boolean drawAllTrackStripes)
Specify whether all moving stations should have track stripes plotted.
|
void |
setDrawAlohaCircle(boolean drawAlohaCircle)
Specify whether aloha circles (optimal maximum RF transmission range for the
local station before causing excessive collisions) should be plotted on the map.
|
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 |
setDrawDeadObjects(boolean drawDeadObjects)
Specify whether Objects that have been "killed" should still be plotted on
the map.
|
void |
setDrawDeadReckoning(boolean drawDeadReckoning)
Specify whether deadreckoning position updates for moving stations and objects should be
calculated and the positions offset and deadreckoning vectors plotted when the stations
and objecfts are drawn.
|
void |
setDrawDF(boolean drawDF)
Specify whether direction-finding cones should be plotted from stations
reporting DFS vector information
|
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 |
setDrawNWSMultiLine(boolean drawNWSMultiLine)
Specify whether encoded polylines (generally used for National Weather Service
severe weather regions) should be plotted on the map.
|
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 |
setDrawToolBarVisibility(boolean isVisible)
Specify whether the toolbar for the drawing tools should be visible or not.
|
void |
setDrawWeatherAsWeather(boolean drawWeatherAsWeather)
Specify whether weather stations should be drawn as old-style weather map
circles with a flagged barb indicating wind direction and speed.
|
void |
setGraticuleVisible(boolean visible)
Specify whether the graticule (latitude/longitude grid lines) are displayed on the map.
|
void |
setKeepSpecificallyTrackedStationsOnScreen(boolean keepSpecificallyTrackedStationsOnScreen)
Specify whether the map should auto-pan to keep specifically tracked mobile stations on the map.
|
void |
setMainFrameTitle()
Specify the title displayed in the main window's title bar.
|
void |
setMapAutoCentering(boolean isAutoCentered)
Specify whether the map should automatically pan to keep the local station
centered on the map.
|
void |
setMaxAgeDRObject(long maxAgeDRObject)
Set the maximum time that dead reckoning will be projected for an object (non-self-transmitter).
|
void |
setMaxAgeDRSpecialObject(long maxAgeDRSpecialObject) |
void |
setMaxAgeDRStation(long maxAgeDRStation)
Set the maximum time that dead reckoning will be projected for a station (self-transmitter).
|
void |
setMaxTrackDuration(long maxTrackDuration)
Set the maximum duration of a track stripe in milliseconds.
|
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 |
setShowTopoContours(boolean visible)
Specify whether the topographic map overlay should be rendered as contour lines.
|
void |
setShowTopoRegions(boolean visible)
Specify whether the topographic map overlay should be rendered as filled region.
|
void |
setShowUnlabeledWays(boolean showUnlabeledWays)
Specify if unlabeled and untyped map features should be displayed.
|
void |
showLayerSelectorTool()
Display the dialog for selecting which parts of the OpenStreetMap database should be
rendered on the map.
|
void |
showMap()
Make visible and foreground the map window.
|
void |
showRasterMapDialog()
Display the dialog for managing raster map images overlays on the map window.
|
void |
shutdown()
Do whatever cleanup this object needs for program shutdown.
|
void |
startLineOfSight()
Enable defining a line of sight between two points on the map; the user presses the mouse at
the starting point, drags to the ending position, and releases.
|
void |
startLineOfSightFromMe(int mouseX,
int mouseY)
Show the line of sight between this station's position and the position clicked on the map,
updating this station's end of the line if it moves.
|
void |
startLineOfSightFromMe(StationState targetStation)
Show the line of sight between this station's position and the station or object clicked on the map,
updating both ends of the line if either moves.
|
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, 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, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, 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, 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, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetVisible, toFrontsetVisiblepublic final StationRenderer stationRenderer
public final OSMLayer osmLayer
public final TopoLayer topoLayer
public final RasterMapOverlay rasterMapOverlay
public GeographicalMap(MainGui mainGui, java.lang.String nameOfWindow)
mainGui - GUI core object to fetch common GUI information fromnameOfWindow - String name to be used to identify this window in Window menu, or null for defaultpublic void setMainFrameTitle()
public void setScale(float scale)
public float getScale()
public void setCenter(double lat,
double lon)
public void setCenter(com.bbn.openmap.proj.coords.LatLonPoint p)
public double getCenterLatitude()
getCenterLatitude in interface GeoMapIfcpublic double getCenterLongitude()
getCenterLongitude in interface GeoMapIfcpublic void initMenuBar()
initMenuBar in interface FirstWindowInitIfcpublic void locateASpecificStation(java.util.ArrayList<StationState> matchList, java.lang.String callsign)
locateASpecificStation in interface GeoMapIfcmatchList - ArrayList of StationStates to locatecallsign - String callsign of the located stationpublic void displayAttentionAlert(StationState ss)
ss - StationState of the station or object to highlightpublic void displayAttentionAlert(double latitude,
double longitude,
AX25Message.Precedence precedence)
displayAttentionAlert in interface GeoMapIfclatitude - double fractional degrees Northlongitude - double fraction degrees Eastprecedence - code for color level to use; ROUTINE is used for station locatespublic boolean isNightMode()
isNightMode in interface GeoMapIfcpublic void setNightMode(boolean isNight)
setNightMode in interface GeoMapIfcisNight - boolean true if should be in night modepublic boolean isMapAutoCentered()
isMapAutoCentered in interface GeoMapIfcpublic void setMapAutoCentering(boolean isAutoCentered)
setMapAutoCentering in interface GeoMapIfcisAutoCentered - boolean true if map should auto-center, false otherwisepublic void refresh()
public void regenerateTopo()
regenerateTopo in interface GeoMapIfcpublic void regenerateStations()
regenerateStations in interface GeoMapIfcpublic com.bbn.openmap.MapBean getMapBean()
public com.bbn.openmap.gui.BasicMapPanel getMapPanel()
public java.awt.geom.Point2D getCenter()
public void gpsDataUpdated(GPSDistributor distributor, GpsFix currentFix, boolean isLocal, java.lang.String source)
gpsDataUpdated in interface GpsDataListenerdistributor - GPSDistributor containing the current GPS statecurrentFix - current GpsFixisLocal - boolean true if this is GPS data for the local station, false if for a remote GPS receiversource - String name assigned to remote GPS receiver, or null if for the local receiverpublic void satDataUpdated(GPSDistributor distributor, SatelliteCatalog satCatalog, boolean isLocal, java.lang.String source)
satDataUpdated in interface GpsDataListenerdistributor - instance of the GPSDistributorsatCatalog - updated SatelliteCatalog instanceisLocal - boolean true if this is GPS data for the local station, false if for a remote GPS receiversource - String name assigned to remote GPS receiver, or null if for the local receiverpublic java.awt.image.RenderedImage copyMap()
public void setDrawToolBarVisibility(boolean isVisible)
setDrawToolBarVisibility in interface GeoMapIfcisVisible - boolean true if draw toolbar should be shownpublic com.bbn.openmap.MouseDelegator getMouseDelegator()
public void portCreated(PortConnector connector)
portCreated in interface PortMgmtListenerconnector - PortConnector that was addedpublic void portDeleted(PortConnector connector)
portDeleted in interface PortMgmtListenerconnector - PortConnector that was removedpublic void shutdown()
shutdown in interface ShutdownHandlerpublic void initializeWindowMenu(java.lang.Object item,
java.lang.Object view)
item - JMenuItem corresponding to the Window menuview - RootPaneContainer containing the menu barpublic static java.awt.GridBagConstraints makeGBC(int x,
int y)
x - int value to use for gridxy - int value to use for gridypublic static java.awt.GridBagConstraints makeGBC(int x,
int y,
int w)
x - int value to use for gridxy - int value to use for gridyw - int value to use for gridwidthpublic static java.awt.GridBagConstraints makeGBC(int x,
int y,
int w,
int h)
x - int value to use for gridxy - int value to use for gridyw - int value to use for gridwidthh - int value to use for gridheightpublic void showLayerSelectorTool()
showLayerSelectorTool in interface GeoMapIfcpublic void showMap()
public void loadDrawing()
loadDrawing in interface GeoMapIfcpublic void loadGpsLog()
loadGpsLog in interface GeoMapIfcpublic void moveObject(StationState ss, ObjectReport or, MoveObjectListener moveObjectListener)
moveObject in interface GeoMapIfcss - StationState object describing the station or objector - ObjectReport to be modified by the movemoveObjectListener - MoveObjectListener to inform when movement is overpublic void showRasterMapDialog()
showRasterMapDialog in interface GeoMapIfcpublic void printThisView()
printThisView in interface PrintableViewpublic void setMemoryGCPanelVisible(boolean visible)
setMemoryGCPanelVisible in interface GeoMapIfcvisible - boolean true if memory status monitor should be visiblepublic boolean isMemoryGCPanelVisible()
public void displayLocateLandmarkDialog()
displayLocateLandmarkDialog in interface GeoMapIfcpublic void displayLocateAmenityDialog()
displayLocateAmenityDialog in interface GeoMapIfcpublic boolean isDrawAllTrackStripes()
isDrawAllTrackStripes in interface GeoMapIfcpublic void setDrawAllTrackStripes(boolean drawAllTrackStripes)
setDrawAllTrackStripes in interface GeoMapIfcdrawAllTrackStripes - boolean true if all moving stations should have track stripespublic void clearAllSpecificTrackStripes()
clearAllSpecificTrackStripes in interface GeoMapIfcpublic void addSpecificTrackStripe(java.lang.String identifier)
addSpecificTrackStripe in interface GeoMapIfcidentifier - String station or object identifierpublic boolean removeSpecificTrackStripe(java.lang.String identifier)
removeSpecificTrackStripe in interface GeoMapIfcidentifier - String station or object identifierpublic boolean isSpecificallyTracked(java.lang.String identifier)
isSpecificallyTracked in interface GeoMapIfcidentifier - String station or object identifierpublic boolean isSpecificallyTracking()
isSpecificallyTracking in interface GeoMapIfcpublic long getMaxTrackDuration()
getMaxTrackDuration in interface GeoMapIfcpublic void setMaxTrackDuration(long maxTrackDuration)
setMaxTrackDuration in interface GeoMapIfcmaxTrackDuration - maximum plotted track duration in millisecondspublic boolean isDrawRangeCircles()
isDrawRangeCircles in interface GeoMapIfcpublic void setDrawRangeCircles(boolean drawRangeCircles)
setDrawRangeCircles in interface GeoMapIfcdrawRangeCircles - boolean true if range circles should be drawnpublic boolean isDrawMicEStatusCircles()
isDrawMicEStatusCircles in interface GeoMapIfcpublic void setDrawMicEStatusCircles(boolean drawMicEStatusCircles)
setDrawMicEStatusCircles in interface GeoMapIfcdrawMicEStatusCircles - boolean true if Mic-E status color circles should be drawnpublic boolean isDrawSelf()
isDrawSelf in interface GeoMapIfcpublic void setDrawSelf(boolean drawSelf)
setDrawSelf in interface GeoMapIfcdrawSelf - boolean true if local station should be drawnpublic boolean isDrawSelfLikeOther()
isDrawSelfLikeOther in interface GeoMapIfcisDrawSelf()public void setDrawSelfLikeOther(boolean drawSelfLikeOther)
setDrawSelfLikeOther in interface GeoMapIfcdrawSelfLikeOther - boolean true to use APRS symbol, or false to use crosshairs
for fixed station or pointer arrowhead for moving stationsetDrawSelf(boolean)public boolean isDrawWeatherAsWeather()
isDrawWeatherAsWeather in interface GeoMapIfcpublic void setDrawWeatherAsWeather(boolean drawWeatherAsWeather)
setDrawWeatherAsWeather in interface GeoMapIfcdrawWeatherAsWeather - boolean true if weather stations should be plotted
with weather map symbols, false if using APRS iconpublic boolean isDrawAge()
public void setDrawAge(boolean drawAge)
setDrawAge in interface GeoMapIfcdrawAge - boolean true if age is to be plottedpublic boolean isDrawDeadObjects()
isDrawDeadObjects in interface GeoMapIfcpublic void setDrawDeadObjects(boolean drawDeadObjects)
setDrawDeadObjects in interface GeoMapIfcdrawDeadObjects - boolean true if "killed" Objects should be plottedpublic boolean isDrawAlohaCircle()
isDrawAlohaCircle in interface GeoMapIfcpublic void setDrawAlohaCircle(boolean drawAlohaCircle)
setDrawAlohaCircle in interface GeoMapIfcdrawAlohaCircle - boolean true if aloha circles should be drawnpublic boolean isDrawItemStatus()
isDrawItemStatus in interface GeoMapIfcStationState.SpecialStatepublic void setDrawItemStatus(boolean drawItemStatus)
setDrawItemStatus in interface GeoMapIfcdrawItemStatus - boolean true if status halo should be drawmStationState.SpecialStatepublic boolean isDrawAmbiguityCircle()
isDrawAmbiguityCircle in interface GeoMapIfcpublic void setDrawAmbiguityCircle(boolean drawAmbiguityCircle)
setDrawAmbiguityCircle in interface GeoMapIfcdrawAmbiguityCircle - boolean true if ambiguity circles should be plottedpublic boolean isDrawDeadReckoning()
isDrawDeadReckoning in interface GeoMapIfcpublic void setDrawDeadReckoning(boolean drawDeadReckoning)
setDrawDeadReckoning in interface GeoMapIfcdrawDeadReckoning - boolean true if deadreckoning should be plottedpublic long getMaxAgeDRStation()
getMaxAgeDRStation in interface GeoMapIfcpublic void setMaxAgeDRStation(long maxAgeDRStation)
setMaxAgeDRStation in interface GeoMapIfcmaxAgeDRStation - maximum dead reckon interval in millisecondspublic long getMaxAgeDRObject()
getMaxAgeDRObject in interface GeoMapIfcpublic void setMaxAgeDRObject(long maxAgeDRObject)
setMaxAgeDRObject in interface GeoMapIfcmaxAgeDRObject - maximum dead reckon interval in millisecondspublic long getMaxAgeDRSpecialObject()
getMaxAgeDRSpecialObject in interface GeoMapIfcpublic void setMaxAgeDRSpecialObject(long maxAgeDRSpecialObject)
setMaxAgeDRSpecialObject in interface GeoMapIfcpublic boolean isDrawDF()
public void setDrawDF(boolean drawDF)
public boolean isDrawNWSMultiLine()
isDrawNWSMultiLine in interface GeoMapIfcpublic void setDrawNWSMultiLine(boolean drawNWSMultiLine)
setDrawNWSMultiLine in interface GeoMapIfcdrawNWSMultiLine - boolean true if multilines should be plottedpublic boolean isDrawCallsign()
isDrawCallsign in interface GeoMapIfcpublic void setDrawCallsign(boolean drawCallsign)
setDrawCallsign in interface GeoMapIfcdrawCallsign - boolean true if callsign label should be drawn on mappublic boolean isDrawAliasInsteadOfCallsign()
isDrawAliasInsteadOfCallsign in interface GeoMapIfcpublic void setDrawAliasInsteadOfCallsign(boolean drawAliasInsteadOfCallsign)
setDrawAliasInsteadOfCallsign in interface GeoMapIfcdrawAliasInsteadOfCallsign - boolean true if alias should be drawn instead of callsignpublic boolean isKeepSpecificallyTrackedStationsOnScreen()
isKeepSpecificallyTrackedStationsOnScreen in interface GeoMapIfcpublic void setKeepSpecificallyTrackedStationsOnScreen(boolean keepSpecificallyTrackedStationsOnScreen)
setKeepSpecificallyTrackedStationsOnScreen in interface GeoMapIfckeepSpecificallyTrackedStationsOnScreen - boolean true if map should pan to keep tracked stations on the mappublic boolean isDrawDoubleSizedSymbols()
isDrawDoubleSizedSymbols in interface GeoMapIfcpublic void setDrawDoubleSizedSymbols(boolean drawDoubleSizedSymbols)
setDrawDoubleSizedSymbols in interface GeoMapIfcdrawDoubleSizedSymbols - boolean true if symbols should be rendered double-sizepublic boolean isShowUnlabeledWays()
isShowUnlabeledWays in interface GeoMapIfcpublic void setShowUnlabeledWays(boolean showUnlabeledWays)
setShowUnlabeledWays in interface GeoMapIfcshowUnlabeledWays - boolean true if unlabeled/untyped map elements should be plottedpublic boolean isShowLabelsInEnglish()
isShowLabelsInEnglish in interface GeoMapIfcpublic void setShowLabelsInEnglish(boolean showLabelsInEnglish)
setShowLabelsInEnglish in interface GeoMapIfcshowLabelsInEnglish - boolean true if English labels should be usedpublic boolean isAutoLoadMapTiles()
isAutoLoadMapTiles in interface GeoMapIfcpublic void setAutoLoadMapTiles(boolean autoLoadMapTiles)
setAutoLoadMapTiles in interface GeoMapIfcautoLoadMapTiles - boolean true to enable auto-downloadpublic boolean isShowTopoContours()
isShowTopoContours in interface GeoMapIfcpublic boolean isGraticuleVisible()
isGraticuleVisible in interface GeoMapIfcpublic void setGraticuleVisible(boolean visible)
setGraticuleVisible in interface GeoMapIfcvisible - boolean true if graticule is displayedpublic boolean isShowTopoRegions()
isShowTopoRegions in interface GeoMapIfcpublic void setShowTopoRegions(boolean visible)
setShowTopoRegions in interface GeoMapIfcvisible - boolean true if topographic layer should be rendered as regionspublic void setShowTopoContours(boolean visible)
setShowTopoContours in interface GeoMapIfcvisible - boolean true if topographic layer should be rendered as contour linespublic void editTopoColors()
editTopoColors in interface GeoMapIfcpublic void startLineOfSight()
startLineOfSight in interface GeoMapIfcpublic void startLineOfSightFromMe(int mouseX,
int mouseY)
startLineOfSightFromMe in interface GeoMapIfcmouseX - int horizontal pixel coordinate in mapmouseY - int vertical pixel coordinate in mappublic void startLineOfSightFromMe(StationState targetStation)
startLineOfSightFromMe in interface GeoMapIfctargetStation - StationState of station or object to trace the path topublic void rotateView(double angleDeg)
public long getLastElapsedPaintTime()
getLastElapsedPaintTime in interface GeoMapIfcpublic int getLastNumDrawnObjects()
getLastNumDrawnObjects in interface GeoMapIfcpublic int getLastNumDrawnStations()
getLastNumDrawnStations in interface GeoMapIfcpublic void filterSettingsChanged(Filter changedFilter, boolean changedByUser)
filterSettingsChanged in interface FilterChangeListenerchangedFilter - Filter that has changedchangedByUser - boolean true if change was manually made by user, false if
change was made automatically by dynamic filter logic