Skip to main content



      Home
Home » Eclipse Projects » GEF » GEF UML auto layout
GEF UML auto layout [message #249647] Wed, 15 July 2009 03:48 Go to next message
Eclipse UserFriend
Hi,

Can any body suggest me about autolayout of UML class diagrams...

currently i am using DirectedGraphLayout for draw2d.graph pachage...

but it fails when the graph contains cycles, which is common in UML
diagrams..

like a class contains its own instance...
Re: GEF UML auto layout [message #249691 is a reply to message #249647] Mon, 20 July 2009 11:25 Go to previous messageGo to next message
Eclipse UserFriend
I tryed to understand the Arrange all action in the
org.eclipse.gmf.runtime.diagram.ui.actions plugin

apart from all the animation stuff i not able to get to the layout which
does the actual arranging of UML diagram...

can any body give any directions

vijay wrote:

> Hi,

> Can any body suggest me about autolayout of UML class diagrams...

> currently i am using DirectedGraphLayout for draw2d.graph pachage...

> but it fails when the graph contains cycles, which is common in UML
> diagrams..

> like a class contains its own instance...
Re: GEF UML auto layout [message #249726 is a reply to message #249691] Fri, 24 July 2009 22:57 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

DirectedGraphLayout is a series of graph visitors that modify the graph
and at the end produce the laid out graph. One of the steps is
specifically to address cycle removal. It's been used for years and it's
patented - it always worked.
The problem is probably elsewhere. However, if you see that the problem is
with that cycle removal graph visitor please create an example of the
graph (i.e. patch for draw2d.examples plugin), raise a defect and attach
the example, so the problem can be reproduced.

Cheers,
Alex
Re: GEF UML auto layout [message #478893 is a reply to message #249726] Fri, 07 August 2009 07:48 Go to previous messageGo to next message
Eclipse UserFriend
if you set edges which have source and target same then the layout fails
with runtime exception....i had to check this and remove them from the
edges which could be done internally...

also similar to setDirection method in directedgrapf, why is there no
method for setting the flow...
i.e
should the connections flow from top to down,left to right,right to
left,down to top...
¡ ¡ ¡
/ \ \ /
¡ ¡ ¡
considering directions also...

i had to take out the draw2d plugin out and modify the code to achieve
bottom up flow...

Alex Boyko wrote:

> Hi,

> DirectedGraphLayout is a series of graph visitors that modify the graph
> and at the end produce the laid out graph. One of the steps is
> specifically to address cycle removal. It's been used for years and it's
> patented - it always worked.
> The problem is probably elsewhere. However, if you see that the problem is
> with that cycle removal graph visitor please create an example of the
> graph (i.e. patch for draw2d.examples plugin), raise a defect and attach
> the example, so the problem can be reproduced.

> Cheers,
> Alex
Re: GEF UML auto layout [message #486971 is a reply to message #478893] Mon, 21 September 2009 07:04 Go to previous message
Eclipse UserFriend
https://bugs.eclipse.org/bugs/show_bug.cgi?id=45759
Previous Topic:Ideal GEF Viewer eats up CPU
Next Topic:GEF png fails when WebSphere run as a Windows Service
Goto Forum:
  


Current Time: Sat May 10 09:40:55 EDT 2025

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

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

Back to the top