Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GEF UML auto layout
GEF UML auto layout [message #249647] Wed, 15 July 2009 07:48 Go to next message
Vijay RajFriend
Messages: 608
Registered: July 2009
Senior Member
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...


---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Re: GEF UML auto layout [message #249691 is a reply to message #249647] Mon, 20 July 2009 15:25 Go to previous messageGo to next message
Vijay RajFriend
Messages: 608
Registered: July 2009
Senior Member
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...


---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Re: GEF UML auto layout [message #249726 is a reply to message #249691] Sat, 25 July 2009 02:57 Go to previous messageGo to next message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
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 11:48 Go to previous messageGo to next message
Vijay RajFriend
Messages: 608
Registered: July 2009
Senior Member
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


---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Re: GEF UML auto layout [message #486971 is a reply to message #478893] Mon, 21 September 2009 11:04 Go to previous message
Vijay RajFriend
Messages: 608
Registered: July 2009
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=45759


---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Previous Topic:Ideal GEF Viewer eats up CPU
Next Topic:GEF png fails when WebSphere run as a Windows Service
Goto Forum:
  


Current Time: Fri Apr 26 04:16:20 GMT 2024

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

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

Back to the top