Problems with routing of connection for nested nodes [message #218566] |
Tue, 27 June 2006 08:47 |
Eclipse User |
|
|
|
Originally posted by: ivica.a.gmx.de
Hello!
I am visualising a nested graph structure using GEF.
In order to avoid overlapping between connections and nodes I use the
ShortestPathConnectionRouter which is configured in the DiagramEditPart.
DiagramEditPart is the root of my model.
Figure f = new FreeformLayer();
f.setLayoutManager(new FreeformLayout());
ConnectionLayer connLayer =
(ConnectionLayer)getLayer(LayerConstants.CONNECTION_LAYER);
ConnectionRouter router = new ShortestPathConnectionRouter(f);
connLayer.setConnectionRouter(router);
The routing works fine between the top-level children of the diagram.
However, routing between nodes which are nested in a composite does not
work. Only straight lines are drawn.
As far as I was able to analyse it, the problem seems to be that for all
nesting structures only one connection layer exists. As soon as I nest
elements into a composite the effect for the routing algorithm is like
these nodes do not exist anymore.
Did I miss something here? What are the consideration which should be
made if I want my routing to work for nested structures? I hope someone
can give me a hint.
Thank you in advance!
Ivica Aracic
|
|
|
|
Powered by
FUDForum. Page generated in 0.04510 seconds