Here is some old code that I used to automatically zoom to an area of
interest based on some basic parameters:-
ReferencedEnvelope viewArea = new
WARNING : GeoTools 2.6.3, it was some time ago. Hopefully it is still valid.
With some additional code you should be able to automatically zoom and pan
the map with this...I think
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-develop-a-real-application-with-GeoTools-tp4473361p4476371.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.