Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » TreeLayout
TreeLayout [message #193833] Mon, 29 August 2005 12:25
Eclipse UserFriend
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.
Previous Topic:EditPart selection rectangle
Next Topic:GEF & OMONDO for graphic representation
Goto Forum:
  


Current Time: Fri Sep 20 08:32:10 GMT 2024

Powered by FUDForum. Page generated in 0.02449 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top