connection layer below main layer? [message #189383] |
Tue, 26 July 2005 21:37 |
Eclipse User |
|
|
|
Originally posted by: user.domain.invalid
Hi,
In my GEF editor I'd like the connection layer to appear below the nodes
layer, so that connections colliding with nodes are drawn below nodes.
Is that possible?
Thanks,
Federica
|
|
|
Re: connection layer below main layer? [message #189385 is a reply to message #189383] |
Tue, 26 July 2005 21:56 |
Eclipse User |
|
|
|
Originally posted by: cleversons.gmail.com
You should try to specialize the RootEditPart of your application. This
class has a method called createPrintableLayers which is defined as
follows:
protected LayeredPane createPrintableLayers() {
FreeformLayeredPane layeredPane = new FreeformLayeredPane();
layeredPane.add(new FreeformLayer(), PRIMARY_LAYER);
layeredPane.add(new ConnectionLayer(), CONNECTION_LAYER);
return layeredPane;
}
Override this method and try to invert the insertion of the PRIMARY_LAYER
and the CONNECTION_LAYER.
|
|
|
Powered by
FUDForum. Page generated in 0.02956 seconds