java.lang.Object
org.jpo.gui.swing.MapViewer
A controller for the Map Component which can be retrieved by @see getJXMapViewer
-
Constructor Summary
ConstructorDescriptionConstructs the controller which creates the Component and wires up the mouse listeners to it. -
Method Summary
Modifier and TypeMethodDescriptionorg.jxmapviewer.JXMapViewer
Returns the Swing Component showing the mapvoid
setMarker
(Point2D.Double latLng) Places a marker on the map at the X and Y latitude and longitude and moves the map to show it in the middle.
-
Constructor Details
-
MapViewer
public MapViewer()Constructs the controller which creates the Component and wires up the mouse listeners to it.
-
-
Method Details
-
getJXMapViewer
public org.jxmapviewer.JXMapViewer getJXMapViewer()Returns the Swing Component showing the map- Returns:
- the Swing Component showing the map
-
setMarker
Places a marker on the map at the X and Y latitude and longitude and moves the map to show it in the middle.- Parameters:
latLng
- the latitude as X and longitude as Y
-