Hi Darmawan,

Really all that happens with the zoom in and zoom out cursor tools is
that they work out the new map bounds (as a ReferencedEnvelope) and
then call JMapPane.setDisplayArea.

Perhaps the easiest thing for you to do is look at the source code for
ZoomInTool, ZoomOutTool, and their base class AbstractZoomTool. You
can find them all here...

http://svn.osgeo.org/geotools/tags/2.6.0/modules/unsupported/swing/src/main/java/org/geotools/swing/tool/

When using ZoomInTool you can draw a box on the map pane with the
mouse to define the area to zoom in to. The code that draws the box is
part of the JMapPane class so you don't need to implement that
yourself.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to