Mouse events and listener classes to work with both window and map positions.
Please keep in mind the following coordinate systems are in use at any point in time:
- screen coordinates: the X,Y relative to the widget
- map coordinates: the position in world coordinates as defined by the MapContext CoordinateReferenceSystem (for "EPSG:4326" these would be on lon/lat)
- data coordinates: the position in data coordinates as defined by a single MapLayer
Interface Summary Interface Description MapMouseEventDispatcherTakes Java AWT mouse events received by a map pane and converts them to
MapMouseEventswhich add world location data.
MapMouseListenerInterface for classes that listen to MapMouseEvents MapPaneListenerListens to events published by the MapPane.
Class Summary Class Description DefaultMapMouseEventDispatcherReceives mouse events from a MapPane instance, converts them to MapPaneMouseEvents, and sends these to the active map pane tools. KeyInfoRepresents a keyboard key or key combination. MapMouseAdapterAn adapter class that implements all of the mouse event handling methods defined in the MapMouseListener interface as empty methods, allowing sub-classes to just override the methods they need. MapMouseEventA
MouseEventwith methods to retrieve position in world coordinates.
MapPaneAdapterAn adapter class that implements all of the methods defined by
MapPaneListeneras empty methods, allowing sub-classes to just override the methods they need.
MapPaneEventAn event class used by
MapPaneto signal changes of state to listeners.
MapPaneKeyHandlerHandles keyboard events for a map pane.
Enum Summary Enum Description MapPaneEvent.TypeType of MapPane event MapPaneKeyHandler.ActionConstants for supported actions.