Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Problems with routing of connection for nested nodes
Problems with routing of connection for nested nodes [message #218566] Tue, 27 June 2006 04:47 Go to next message
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
Re: Problems with routing of connection for nested nodes [message #218643 is a reply to message #218566] Tue, 27 June 2006 13:53 Go to previous message
Steven R. Shaw is currently offline Steven R. Shaw
Messages: 128
Registered: July 2009
Senior Member
CC yourself to:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=135086

This will be on the proposed list for 3.2

-Steve

"Ivica Aracic" <ivica.a@gmx.de> wrote in message
news:e7qra9$hsj$1@utils.eclipse.org...
> 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
Previous Topic:Can't delete certain EditParts from the model
Next Topic:scrolling in a graphical Editor
Goto Forum:
  


Current Time: Fri Apr 18 17:06:40 EDT 2014

Powered by FUDForum. Page generated in 0.02756 seconds