Drawing lines between tree items [message #190932] |
Sun, 07 August 2005 12:40 |
Eclipse User |
|
|
|
Originally posted by: erel.unicorn.com
I want to write a GUI that displays two trees (TreeViewer). The trees
are separated e.g. by a Sash but in the same view.
-----------------------
| | | |
| | | |
| Tree | Lines | Tree |
| | | |
| | | |
-----------------------
When dragging one item on the one tree and dropping it on another item in
the other tree I want to draw a line from the one to the other items. This
line should be updated (e.g. source and target position should change, be
hidden, when the corresponding item in the tree is collapsed the line
should disapear, when the item gets out of the view the line should
disapear).
what would be the best way to achieve this?
Are there any simi9lar examples?
Any help would be highly appreciated,
Thanks in advance
Erel
|
|
|
Powered by
FUDForum. Page generated in 0.04847 seconds