org.geotools.gui.tools
Interface ZoomTool

All Superinterfaces:
Tool
All Known Implementing Classes:
ZoomToolImpl

public interface ZoomTool
extends Tool

A tool which provides methods for zooming.

Version:
$Id: ZoomTool.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.