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