Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Send to Front or Back(Supported for Shapes, but not for Connections ?)
Send to Front or Back [message #654274] Mon, 14 February 2011 20:51 Go to next message
Jos Warmer is currently offline Jos WarmerFriend
Messages: 114
Registered: October 2010
Senior Member
The method Graphiti.getPeService().sendToFront allows one to send a shape to the front, there is also a method to send a shape to the back. I have a Connection that I need to send to the back, but cannot find a method to do this. What would b the best way to achieve this ?

Jos
Re: Send to Front or Back [message #654326 is a reply to message #654274] Tue, 15 February 2011 08:13 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Graphiti renders all connections onto one specific layer in the diagram,
that's the reason why there is no send to back/front for them.

Michael
Re: Send to Front or Back [message #654826 is a reply to message #654326] Thu, 17 February 2011 10:26 Go to previous messageGo to next message
Jos Warmer is currently offline Jos WarmerFriend
Messages: 114
Registered: October 2010
Senior Member
You seem to be right, even when I call sendToFront() for a shape, it still is behind the connections.

This does mean (at least for my case) that connections are always in front of the shapes. Is there a way to make the connection layer be under the shapes layers, such that all connections are underneath the shapes.

Jos
Re: Send to Front or Back [message #655754 is a reply to message #654826] Tue, 22 February 2011 14:41 Go to previous message
Tim Kaiser is currently offline Tim KaiserFriend
Messages: 118
Registered: July 2009
Senior Member
Hi Jos,

have a look at
ScalableRootEditPartAnimated
There exists a field
connectionLayerOnTop
which defaults to true.

Currently there is no API to change the value.

(To try it, you might use the debugger (change value...) or reflection)

You might open a bugzilla request for introducing API to change the value
of the field.

Best, Tim
Previous Topic:Interacting With A Connection
Next Topic:Graphiti API
Goto Forum:
  


Current Time: Fri Apr 26 12:36:10 GMT 2024

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

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

Back to the top