public abstract class AbstractZoomTool extends CursorTool
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_ZOOM_FACTOR
The default zoom increment
|
protected double |
zoom
The working zoom increment
|
Constructor and Description |
---|
AbstractZoomTool()
Constructor
|
Modifier and Type | Method and Description |
---|---|
double |
getZoom()
Get the current areal zoom increment.
|
double |
setZoom(double newZoom)
Set the zoom increment
|
drawDragBox, getCursor, getMapPane, setMapPane
onMouseClicked, onMouseDragged, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onMouseWheelMoved
public static final double DEFAULT_ZOOM_FACTOR
protected double zoom
public double getZoom()
public double setZoom(double newZoom)
newZoom
- the new zoom increment; values <= 1.0 will be ignoredCopyright © 1996–2023 Geotools. All rights reserved.