Skip to main content



      Home
Home » Eclipse Projects » GEF » connection layer below main layer?
connection layer below main layer? [message #189383] Tue, 26 July 2005 17:37 Go to next message
Eclipse UserFriend
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 17:56 Go to previous message
Eclipse UserFriend
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.
Previous Topic:laying out only selected figures
Next Topic:RCP/GEF developer Wanted
Goto Forum:
  


Current Time: Fri Jul 04 16:54:05 EDT 2025

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

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

Back to the top