java.lang.Object
org.jpo.gui.MapWindow
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the JComponent to attach to SWING componentsvoid
Handles the ShowGroupRequest and shows the markers on the mapvoid
Handles the ShowQueryRequest by showing the query resultsvoid
Sets the map back to the default view.
-
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
Returns the JComponent to attach to SWING components- Returns:
- the JComponent showing the map
-
handleShowGroupRequest
Handles the ShowGroupRequest and shows the markers on the map- Parameters:
event
- the ShowGroupRequest
-
handleShowQueryRequest
Handles the ShowQueryRequest by showing the query results- Parameters:
event
- the ShowQueryRequest
-