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.voidRespond to a mouse wheel scroll event received from the map paneMethods inherited from class AbstractZoomTool
getZoom, setZoomMethods inherited from class CursorTool
drawDragBox, getMapPane, setMapPaneMethods inherited from class MapMouseAdapter
onMouseClicked, onMouseDragged, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased
-
Constructor Details
-
ScrollWheelTool
-
-
Method Details
-
getCursor
Description copied from class:CursorToolGet the cursor for this tool. Sub-classes should override this method to provide a custom cursor.- Overrides:
getCursorin classCursorTool- Returns:
- the default cursor
-
onMouseWheelMoved
Description copied from class:MapMouseAdapterRespond to a mouse wheel scroll event received from the map pane- Specified by:
onMouseWheelMovedin interfaceMapMouseListener- Overrides:
onMouseWheelMovedin classMapMouseAdapter- Parameters:
ev- the mouse event
-