Module org.jpo
Package org.jpo.gui

Class MapWindow

java.lang.Object
org.jpo.gui.MapWindow

public class MapWindow extends Object
A controller to manage a map window in the info panel. It listens to the eventBus and updates the map and the Waypoints autonomously when it hears about a new Group or a new Query being selected.
  • Constructor Details

    • MapWindow

      public MapWindow()
      Constructs the new MapWindow component.
  • Method Details

    • setDefaultView

      public void setDefaultView()
      Sets the map back to the default view.
    • getJComponent

      public JComponent getJComponent()
      Returns the JComponent to attach to SWING components
      Returns:
      the JComponent showing the map
    • handleShowGroupRequest

      public void handleShowGroupRequest(ShowGroupRequest event)
      Handles the ShowGroupRequest and shows the markers on the map
      Parameters:
      event - the ShowGroupRequest
    • handleShowQueryRequest

      public void handleShowQueryRequest(ShowQueryRequest event)
      Handles the ShowQueryRequest by showing the query results
      Parameters:
      event - the ShowQueryRequest