Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Doubt in Plug-in

normally lines are drawn using DrawCommands.  The draw commands keep redrawing until the method isValid returns false.  So the easiest way is to call setValid(false) on the command.  Or you can write a subclass of the command that invalidates based on some other parameter.

jesse

On Thu, Apr 30, 2009 at 5:13 AM, karthik shravanam <nobody@xxxxxxxxxxxxxxxxxxxxx> wrote:
Hi All,

I am working on a plug-in feature for the uDig,i have a question regarding as to how to clear the lines when we double click  on the mouse, when we have selected a portion of the map and want to start over from a different point instead of the previous point.

I am trying to refresh the map ,clear the lines and then repaint. Can some one please tell me if i am doing it the correct way because i am having some problem with it and can't seem to get it working.

I was wondering if clearing the lines drawn can be done in the same layer or do we have to add a different layer on top of it?

Can some one please suggest.

It would be of great help if you can point me to an example for a Mouse DoubleClickEvent procedure to clear the lines.


Thanks for the help in advance.

Thanks,
karthik.  

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel



Back to the top