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: js-ttn.jomisch.de

Hello,

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?

thx
josch
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
Hi,

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.

Cheers,
Alex
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: js-ttn.jomisch.de

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
josch
Previous Topic:DragAndDrop
Next Topic:GEF Shapes-RCP show outline and property views
Goto Forum:
  


Current Time: Fri Apr 26 21:01:18 GMT 2024

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

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

Back to the top