Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Connection to front?
Connection to front? [message #228305] Tue, 19 December 2006 14:00 Go to next message
Eclipse UserFriend
Originally posted by:


if the user select a connection (PolylineConnection) then this connection was painted in red (other in black). In some cases there a more than one connection to an anchor. so the connections overlapped in a big part. How can i bring the selected connection in front of the other?

Re: Connection to front? [message #228346 is a reply to message #228305] Tue, 19 December 2006 16:26 Go to previous messageGo to next message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member

You could just add connection's figure it's parent when connection edit
part becomes selected. This will remove the figure from parent's children
list and append it at the end so it will be drawn on top of the others.
The #add(IFigre) methods also validates connection figure and repaints it.
So, I guess in the place where you change the figure's color, you can
simply call myConnectionFigure.getParent().add(myConnectionFigure) and
this will bring the selected connection up in a front of the others.
Hope this helps.

Re: Connection to front? [message #228363 is a reply to message #228346] Tue, 19 December 2006 20:53 Go to previous message
Eclipse UserFriend
Originally posted by:

Hi Alex,

after my first quick test i must say; IT WORKS :-) It's a little bit tricky und i must set the router again after i add the figure but this is ok.

many thanks
Previous Topic:error GraphicalEditor.doSave
Next Topic:diagram with root ToolbarLayout
Goto Forum:

Current Time: Fri Dec 03 15:36:23 GMT 2021

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

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

Back to the top