Package org.geotools.swing.event
Class MapMouseAdapter
- Object
-
- MapMouseAdapter
-
- All Implemented Interfaces:
MapMouseListener
- Direct Known Subclasses:
CursorTool
public class MapMouseAdapter extends Object implements MapMouseListener
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.- Since:
- 2.6
- Author:
- Michael Bedward
-
-
Constructor Summary
Constructors Constructor Description MapMouseAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonMouseClicked(MapMouseEvent ev)Respond to a mouse click event received from the map panevoidonMouseDragged(MapMouseEvent ev)Respond to a mouse dragged event received from the map panevoidonMouseEntered(MapMouseEvent ev)Respond to a mouse entered event received from the map panevoidonMouseExited(MapMouseEvent ev)Respond to a mouse exited event received from the map panevoidonMouseMoved(MapMouseEvent ev)Respond to a mouse movement event received from the map panevoidonMousePressed(MapMouseEvent ev)Respond to a mouse button press event received from the map panevoidonMouseReleased(MapMouseEvent ev)Respond to a mouse button release event received from the map panevoidonMouseWheelMoved(MapMouseEvent ev)Respond to a mouse wheel scroll event received from the map pane
-
-
-
Method Detail
-
onMouseClicked
public void onMouseClicked(MapMouseEvent ev)
Respond to a mouse click event received from the map pane- Specified by:
onMouseClickedin interfaceMapMouseListener- Parameters:
ev- the mouse event
-
onMouseDragged
public void onMouseDragged(MapMouseEvent ev)
Respond to a mouse dragged event received from the map pane- Specified by:
onMouseDraggedin interfaceMapMouseListener- Parameters:
ev- the mouse event
-
onMouseEntered
public void onMouseEntered(MapMouseEvent ev)
Respond to a mouse entered event received from the map pane- Specified by:
onMouseEnteredin interfaceMapMouseListener- Parameters:
ev- the mouse event
-
onMouseExited
public void onMouseExited(MapMouseEvent ev)
Respond to a mouse exited event received from the map pane- Specified by:
onMouseExitedin interfaceMapMouseListener- Parameters:
ev- the mouse event
-
onMouseMoved
public void onMouseMoved(MapMouseEvent ev)
Respond to a mouse movement event received from the map pane- Specified by:
onMouseMovedin interfaceMapMouseListener- Parameters:
ev- the mouse event
-
onMousePressed
public void onMousePressed(MapMouseEvent ev)
Respond to a mouse button press event received from the map pane- Specified by:
onMousePressedin interfaceMapMouseListener- Parameters:
ev- the mouse event
-
onMouseReleased
public void onMouseReleased(MapMouseEvent ev)
Respond to a mouse button release event received from the map pane- Specified by:
onMouseReleasedin interfaceMapMouseListener- Parameters:
ev- the mouse event
-
onMouseWheelMoved
public void onMouseWheelMoved(MapMouseEvent ev)
Respond to a mouse wheel scroll event received from the map pane- Specified by:
onMouseWheelMovedin interfaceMapMouseListener- Parameters:
ev- the mouse event
-
-