Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » auto arrange figures on canvas
auto arrange figures on canvas [message #205091] Mon, 12 December 2005 10:48 Go to next message
Eclipse UserFriend
Originally posted by: pavan_kg.yahoo.com

I am generating some figures. I need to arrange them in a proper way (i.e
they should not be overlap with each other). Is there any way to do it
simply or I need to write an algoritham to display all figures one after
other?

Please suggest me.


Thank you

Pavan kumar gupta.
Re: auto arrange figures on canvas [message #205135 is a reply to message #205091] Mon, 12 December 2005 18:36 Go to previous messageGo to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
The GEF has an automatic layouter, see for example the flow example
(org.eclipse.gef.examples.flow.parts.GraphLayoutManager).

"pavan" <pavan_kg@yahoo.com> wrote in message
news:3b74cf706fd6c4d67299de2a26e8fd44$1@www.eclipse.org...
>I am generating some figures. I need to arrange them in a proper way (i.e
>they should not be overlap with each other). Is there any way to do it
>simply or I need to write an algoritham to display all figures one after
>other?
>
> Please suggest me.
>
>
> Thank you
>
> Pavan kumar gupta.
>
Re: auto arrange figures on canvas [message #206351 is a reply to message #205135] Thu, 29 December 2005 05:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pavan_kg.yahoo.com

I am using xylayout. My diagram is an ER-Diagram. I am unable to follow
flow example for my problem. because figures are not in fixed size.

Pavan
Re: auto arrange figures on canvas [message #206393 is a reply to message #206351] Thu, 29 December 2005 20:44 Go to previous messageGo to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
"pavan" <pavan_kg@yahoo.com> wrote in message
news:e69ad5a790d503629cec0aebc7ffbcce$1@www.eclipse.org...
>I am using xylayout. My diagram is an ER-Diagram. I am unable to follow
>flow example for my problem. because figures are not in fixed size.
>
> Pavan
>

I don't understand the problem. You just need specify each node's current
current width and height, add the edges and then visit the layout with the
graph. Then copy everything back into the actual diagram.
Re: auto arrange figures on canvas [message #206463 is a reply to message #206393] Mon, 02 January 2006 07:08 Go to previous message
Eclipse UserFriend
Originally posted by: pavan_kg.yahoo.com

I am getting an exception saying "Cycles detected in graph".
Previous Topic:ConnectionDragTracker not showing feedback
Next Topic:Simple line drawing EditPart
Goto Forum:
  


Current Time: Fri Apr 26 09:44:58 GMT 2024

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

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

Back to the top