Package org.geotools.swing.tool
Class ScrollWheelTool
Object
MapMouseAdapter
CursorTool
AbstractZoomTool
ScrollWheelTool
- All Implemented Interfaces:
MapMouseListener
Allow scrolling with the mouse wheel.
- Since:
- 2.15
- Author:
- Ian Turton
-
Field Summary
Fields inherited from class AbstractZoomTool
DEFAULT_ZOOM_FACTOR, zoom
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the cursor for this tool.void
Respond to a mouse wheel scroll event received from the map paneMethods inherited from class AbstractZoomTool
getZoom, setZoom
Methods inherited from class CursorTool
drawDragBox, getMapPane, setMapPane
Methods inherited from class MapMouseAdapter
onMouseClicked, onMouseDragged, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased
-
Constructor Details
-
ScrollWheelTool
-
-
Method Details
-
getCursor
Description copied from class:CursorTool
Get the cursor for this tool. Sub-classes should override this method to provide a custom cursor.- Overrides:
getCursor
in classCursorTool
- Returns:
- the default cursor
-
onMouseWheelMoved
Description copied from class:MapMouseAdapter
Respond to a mouse wheel scroll event received from the map pane- Specified by:
onMouseWheelMoved
in interfaceMapMouseListener
- Overrides:
onMouseWheelMoved
in classMapMouseAdapter
- Parameters:
ev
- the mouse event
-