public class ScrollWheelTool extends AbstractZoomTool
DEFAULT_ZOOM_FACTOR, zoom
Constructor and Description |
---|
ScrollWheelTool(JMapPane mapPane) |
Modifier and Type | Method and Description |
---|---|
Cursor |
getCursor()
Get the cursor for this tool.
|
void |
onMouseWheelMoved(MapMouseEvent ev)
Respond to a mouse wheel scroll event received from the map pane
|
getZoom, setZoom
drawDragBox, getMapPane, setMapPane
onMouseClicked, onMouseDragged, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased
public ScrollWheelTool(JMapPane mapPane)
public Cursor getCursor()
CursorTool
getCursor
in class CursorTool
public void onMouseWheelMoved(MapMouseEvent ev)
MapMouseAdapter
onMouseWheelMoved
in interface MapMouseListener
onMouseWheelMoved
in class MapMouseAdapter
ev
- the mouse eventCopyright © 1996–2019 Geotools. All rights reserved.