Hi, To do this you will have to verify that the tool is registered to recieve mouse motion events. That is configured with constructor parameter passed to the super class. Make sure there is a DrawCommand which draws a Shape. I think there is a ShapeDrawCommand or somesuch.
Next override the mouseDragged method and for each call update the draw command and update the distance calculation. After the ShapeDrawCommand is updated you have to call ViewportPane.update (Its been a long time so I dont remember the exact name of the command but it triggers a redraw of the display). Jesse On Tue, Apr 21, 2009 at 10:29 AM, karthik shravanam < [email protected]> wrote: > > Hi All, > > I am playing with the code given in the distance tool plug-in tutorial.pdf > and made some changes according to what i want to see and everything seems > to work fine,but the problem is that when drag the mouse from one point to > other it does calculate the distance but its not drawing the line so i can't > see how many points i have selected in the UI. Am i missing something here? > how can i draw the line between those co-ordinates? > > Can you please let me know, > > Thanks for the help in advance. > > _______________________________________________ > User-friendly Desktop Internet GIS (uDig) > http://udig.refractions.net > http://lists.refractions.net/mailman/listinfo/udig-devel > >
_______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
