Hi,
I'm using smartGwt version 3.0 and FF browser.
I'm creating a graph of nodes (Canvas objects) connected by DrawLinePath. When the user moves a node, I'd like to re-position the line.
My problem is that I cannot find a way to update the position of an existing line. The only alternative I found is to erase the old line and create a new one. Is it the correct practice?
Two related questions:
1) should I call erase() or destroy() method on the old line?
2) sometimes when I erase() an old line I get a
WARN:DrawLinePath:isc_DrawLinePath_43:DrawItem not yet drawn - exiting erase()
How can I check whether a line was already drawn (and need to be erased) or not?
Thanks for the help, David
I'm using smartGwt version 3.0 and FF browser.
I'm creating a graph of nodes (Canvas objects) connected by DrawLinePath. When the user moves a node, I'd like to re-position the line.
My problem is that I cannot find a way to update the position of an existing line. The only alternative I found is to erase the old line and create a new one. Is it the correct practice?
Two related questions:
1) should I call erase() or destroy() method on the old line?
2) sometimes when I erase() an old line I get a
WARN:DrawLinePath:isc_DrawLinePath_43:DrawItem not yet drawn - exiting erase()
How can I check whether a line was already drawn (and need to be erased) or not?
Thanks for the help, David
Comment