Module org.jpo

Class MapViewer

java.lang.Object
org.jpo.gui.swing.MapViewer

public class MapViewer extends Object
A controller for the Map Component which can be retrieved by @see getJXMapViewer
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs the controller which creates the Component and wires up the mouse listeners to it.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jxmapviewer.JXMapViewer
    Returns the Swing Component showing the map
    void
    Places a marker on the map at the X and Y latitude and longitude and moves the map to show it in the middle.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public void 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.
      Parameters:
      latLng - the latitude as X and longitude as Y