Skip to main content



      Home
Home » Eclipse Projects » GEF » Connections selection after changing z-order of layers
Connections selection after changing z-order of layers [message #813804] Mon, 05 March 2012 13:27
Eclipse UserFriend
Hello,

By Default, if a connection cross a node, the connection is displayed on top of the node.
I wanted to change this behavior in order to have nodes above connections (similarly to zest for example).
I manage to do so by overriding ScalableRootEditPart.createPrintableLayers() and changing order of layer creation, like described in some posts here.

It works excepti for connection selection.

As now Primary Layer is on top of Connection Layer, selection is taken by the root figure, so it is not possible anymore to select connections (to create bendpoint for example).

I manage to restore this by overriding the findFigureAt in the viewport created by the ScalableRootEditPart, but it seems a quite dirty workaround to me.

As it seems to be a quite common need, to have nodes on top of connection, I was wondering what is the best solution to achieve this.

Thanks,
kind regards,
Arnaud
Previous Topic:ZEST: table cells as nodes / nodes in table cells?
Next Topic:How to start with GEF and EMF transactions
Goto Forum:
  


Current Time: Wed Jul 09 08:20:39 EDT 2025

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

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

Back to the top