org.geotools.gui.tools
Interface ClickZoomTool

All Superinterfaces:
Tool
All Known Implementing Classes:
ClickZoomToolImpl

public interface ClickZoomTool
extends Tool

Pan the map so that the new extent has the click point in the middle of the map and then zoom in/out by the zoomFactor.

Version:
$Id: ClickZoomTool.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Cameron Shorter

Method Summary
 double getZoomFactor()
          The factor to zoom in out by, zoomFactor=0.5 means zoom in, zoomFactor=2 means zoom out.
 void setZoomFactor(double zoomFactor)
          The factor to zoom in out by, zoomFactor=0.5 means zoom in, zoomFactor=2 means zoom out.
 
Methods inherited from interface org.geotools.gui.tools.Tool
addMouseListener, addMouseMotionListener, destroy, getContext, getCursor, getName, paint, removeMouseListeners, setCursor, setName
 

Method Detail

setZoomFactor

public void setZoomFactor(double zoomFactor)
The factor to zoom in out by, zoomFactor=0.5 means zoom in, zoomFactor=2 means zoom out. Defaults to 2.

Parameters:
zoomFactor - the factor to zoom by.

getZoomFactor

public double getZoomFactor()
The factor to zoom in out by, zoomFactor=0.5 means zoom in, zoomFactor=2 means zoom out. Defaults to 2.

Returns:
the factor to zoom by.


Copyright © GeoTools. All Rights Reserved.