Package org.geotools.swing.tool
Class AbstractZoomTool
Object
MapMouseAdapter
CursorTool
AbstractZoomTool
- All Implemented Interfaces:
- MapMouseListener
- Direct Known Subclasses:
- ScrollWheelTool,- ZoomInTool,- ZoomOutTool
Abstract base class for the zoom-in and zoom-out tools. Provides getter / setter methods for the zoom increment.
- Since:
- 2.6
- Author:
- Michael Bedward
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final doubleThe default zoom incrementprotected doubleThe working zoom increment
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class CursorTooldrawDragBox, getCursor, getMapPane, setMapPaneMethods inherited from class MapMouseAdapteronMouseClicked, onMouseDragged, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onMouseWheelMoved
- 
Field Details- 
DEFAULT_ZOOM_FACTORpublic static final double DEFAULT_ZOOM_FACTORThe default zoom increment- See Also:
 
- 
zoomprotected double zoomThe working zoom increment
 
- 
- 
Constructor Details- 
AbstractZoomToolpublic AbstractZoomTool()Constructor
 
- 
- 
Method Details- 
getZoompublic double getZoom()Get the current areal zoom increment.- Returns:
- the current zoom increment as a double
 
- 
setZoompublic double setZoom(double newZoom) Set the zoom increment- Parameters:
- newZoom- the new zoom increment; values <= 1.0 will be ignored
- Returns:
- the previous zoom increment
 
 
-