GEF UML auto layout [message #249647] |
Wed, 15 July 2009 07:48 |
Vijay Raj 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 |
Vijay Raj 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 #478893 is a reply to message #249726] |
Fri, 07 August 2009 11:48 |
Vijay Raj 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.01924 seconds