|Problems with routing of connection for nested nodes [message #218566]
||Tue, 27 June 2006 08:47
Originally posted by: ivica.a.gmx.de|
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();
ConnectionLayer connLayer =
ConnectionRouter router = new ShortestPathConnectionRouter(f);
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!
Powered by FUDForum
. Page generated in 0.14462 seconds