Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Get connections to be drawed behind nodes
Get connections to be drawed behind nodes [message #161891] Fri, 17 December 2004 10:54 Go to next message
Eclipse UserFriend
Originally posted by: filzmail.gmail.com

Hi,

I am laying out a graph in GEF using a custom LayoutManager which calls
DirectedGraphLayout().visit(graph), as described here:

http://www.eclipse.org/articles/Article-GEF-editor/gef-schem a-editor.html

The graph consists of several nodes and connections between some of
them. The DirectedGraphLayout does not route the connections around
existing nodes and IT SHOULD STAY THAT WAY, but this means a connection
may go from its source "through" another (third) node to reach its target.

Right now the connections are drawed IN FRONT OF the existing nodes, but
I'd like them to be drawed BEHIND them.

I am not really sure where to look for to change that behaviour, the
whole connection drawing stuff seems like magic to me. I checked other
threads in this group but I didn't understand them.

Can someone give me some pointers as to how to change the ordering of
the drawing routines?

Thanks!

Phil
Re: Get connections to be drawed behind nodes [message #161967 is a reply to message #161891] Fri, 17 December 2004 17:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

"Phil" <filzmail@gmail.com> wrote in message
news:cpudso$idq$1@www.eclipse.org...
> Hi,
>
> I am laying out a graph in GEF using a custom LayoutManager which calls
> DirectedGraphLayout().visit(graph), as described here:
>
> http://www.eclipse.org/articles/Article-GEF-editor/gef-schem a-editor.html
>
> The graph consists of several nodes and connections between some of
> them. The DirectedGraphLayout does not route the connections around
> existing nodes and IT SHOULD STAY THAT WAY, but this means a connection
> may go from its source "through" another (third) node to reach its target.

What do you mean, virtual nodes are inserted to route edges among existing
nodes. Maybe you application isn't doing anything with those "bendpoints"
which directed graph layout is inserting.

> Right now the connections are drawed IN FRONT OF the existing nodes, but
> I'd like them to be drawed BEHIND them.
>
> I am not really sure where to look for to change that behaviour, the
> whole connection drawing stuff seems like magic to me. I checked other
> threads in this group but I didn't understand them.

Look at the root editpart which creates the connection and primary layers.

>
> Can someone give me some pointers as to how to change the ordering of
> the drawing routines?
>
> Thanks!
>
> Phil
Re: Get connections to be drawed behind nodes [message #162092 is a reply to message #161967] Sun, 19 December 2004 15:24 Go to previous message
Eclipse UserFriend
Originally posted by: filzmail.gmail.com

Randy Hudson wrote:

> What do you mean, virtual nodes are inserted to route edges among
existing
> nodes. Maybe you application isn't doing anything with those "bendpoints"
> which directed graph layout is inserting.

You are right... I forgot about them bendpoints. :( Thanks!

> Look at the root editpart which creates the connection and primary layers.

I will. Thanks!

Phil
Previous Topic:Modifying the Flow example
Next Topic:editpart suport page setup
Goto Forum:
  


Current Time: Thu Apr 25 15:54:17 GMT 2024

Powered by FUDForum. Page generated in 0.02953 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top