Hi, Giovanni,
#execute is the first method called in the plugin. It is used to test
initial state (checking that there is an editable layer, for example).
If execute returns true (indicating the test was satisfied) the plugin
continues executing. Then, the user can draw the poligon and after
finishing drawing the method #gestureFinished is called. Here, into
#gestureFinished (you must override it), you can introduce the
functionality you want (for example, to show a message indicating the
number of vertices of the new polygon).
I can't send you an example now, I'm sorry. Maybe another list user can.
Regards.
Giovanni Virdis escribió:
Hi, I send you my class that extends DrawPolygonTool.
I want that when I press a button I can draw a new polygon and after I
want make an others action for example show a message. I use the execute
method (public boolean execute(PlugInContext context) throws Exception).
You can send me an example .
Thanks
Regards Giovanni
__________ Información de NOD32, revisión 3050 (20080423) __________
Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com
------------------------------------------------------------------------
_______________________________________________
Kosmo mailing list
[email protected]
http://lists.saig.es/mailman/listinfo/kosmo
__________ Información de NOD32, revisión 3050 (20080423) __________
Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com
_______________________________________________
Kosmo mailing list
[email protected]
http://lists.saig.es/mailman/listinfo/kosmo