TreeLayout [message #193833] |
Mon, 29 August 2005 12:25 |
Eclipse User |
|
|
|
Originally posted by: peter.snowdon.businessobjects.com
Hi,
At the moment I have a tree model that can be drawn freehand. But the user
has the option to layout the tree more nicely, with a command. What I'd
like to do is replace the pretty terrible layout algorithm I have with the
one in the draw2D example. However I cannot see how to add the figures to
figures ie my diagram holds a list of all the figures rather than holding
a root figure which in turn holds its children figures. Make sense?
I guess that what I want is that my figures are more representative of the
tree structure rather than being a flatlist. This is what is done by the
Tree example as far as I can see. I could then override the
AbstractLayout.layout() method to use treelayout.
If anyone has any experience here or has an approach that I could use I'd
be grateful.
thanks,
Peter.
|
|
|
Powered by
FUDForum. Page generated in 0.02673 seconds