On 5 September 2013 07:10, David Purdy <david.pu...@jjmtechcorp.com> wrote:
>
> May I ask how you go about implementing the click and drag to establish a 
> rectangle?  I have a feature that creates a polygon but requires several 
> clicks, not the click and drag.  I'm not looking for the code, just the 
> concept of how its done.
>

You can probably adapt the existing click and drag code for your purposes...

https://github.com/geotools/geotools/blob/master/modules/unsupported/swing/src/main/java/org/geotools/swing/MouseDragBox.java

Michael

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to