|Connections selection after changing z-order of layers [message #813804]
||Mon, 05 March 2012 18:27
| Arnaud MERGEY
Registered: March 2010
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.
Powered by FUDForum
. Page generated in 0.02640 seconds