Skip to main content



      Home
Home » Eclipse Projects » GEF » [Zest] - order in which GraphNode and GraphConnections are drawn
[Zest] - order in which GraphNode and GraphConnections are drawn [message #1281776] Tue, 01 April 2014 06:37 Go to next message
Eclipse UserFriend
Greetings,

I'm having some problems with how the nodes and connections are currently rendered.
As it is now I get the feeling that connections are always drawn below the nodes, regardless in what order they are added.
What I need is to either have the connections always drawn above nodes or if I could simply control the order they are drawn myself it would suffice.

I've been trying to implement some workaround this, either by using the Control.moveAbove (this seem futile since from what I can tell nodes and connections aren't composites) or by controlling the order they are added to the canvas (this also seems futile because how they are added is currently hidden inside the Zest framework).

Is there something I've missed which I can use to create a workaround this issue.

Any help is appreciated, even if it is a simple clue.

With Regards,
Mikael
Re: [Zest] - order in which GraphNode and GraphConnections are drawn [message #1281903 is a reply to message #1281776] Tue, 01 April 2014 10:48 Go to previous messageGo to next message
Eclipse UserFriend
Hi Mikael,

if I recall correctly, Draw2D (the vector library used inside Zest) presents all edges above the nodes in a separate layer. However, even if it is configurable, the Zest API does not offer programmatic support for changing this setting.

I am sorry, but I don't think your use case can be easily supported by Zest.

Cheers,
Zoltán
Re: [Zest] - order in which GraphNode and GraphConnections are drawn [message #1419765 is a reply to message #1281903] Tue, 09 September 2014 00:01 Go to previous message
Eclipse UserFriend
Connection and node are drawn on two different layers. In fact, there are 6 layers and connection is the one on the bottom. You can check out ZestRootLayer class. This freeformlayer class is hardwired, in addition, it is internally instantiated by zest GraphViewer.
Previous Topic:Under which circumstances can an existing EditPart be absent from the registry?
Next Topic:[ZEST] custom layout class access restriction
Goto Forum:
  


Current Time: Sun Jul 13 17:47:48 EDT 2025

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

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

Back to the top