Package org.geotools.swing.event
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 MapMouseEventDispatcher Takes Java AWT mouse events received by a map pane and converts them toMapMouseEvents
which add world location data.MapMouseListener Interface for classes that listen to MapMouseEventsMapPaneListener Listens to events published by the MapPane. -
Class Summary Class Description DefaultMapMouseEventDispatcher Receives mouse events from a MapPane instance, converts them to MapPaneMouseEvents, and sends these to the active map pane tools.KeyInfo Represents a keyboard key or key combination.MapMouseAdapter An 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.MapMouseEvent AMouseEvent
with methods to retrieve position in world coordinates.MapPaneAdapter An adapter class that implements all of the methods defined byMapPaneListener
as empty methods, allowing sub-classes to just override the methods they need.MapPaneEvent An event class used byMapPane
to signal changes of state to listeners.MapPaneKeyHandler Handles keyboard events for a map pane. -
Enum Summary Enum Description MapPaneEvent.Type Type of MapPane eventMapPaneKeyHandler.Action Constants for supported actions.