Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Connection Layer on the back
Connection Layer on the back [message #989678] Fri, 07 December 2012 04:49 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 500
Registered: June 2011
Senior Member
Hi,

I would like to send my connection to the back so all my editparts should be on top of connection. I am using following code

class CustomRootEditPart extends ScalableFreeformRootEditPart {
@Override
protected LayeredPane createPrintableLayers() {
FreeformLayeredPane layeredPane = new FreeformLayeredPane();
layeredPane.add(new ConnectionLayer(), CONNECTION_LAYER);
layeredPane.add(new FreeformLayer(), PRIMARY_LAYER);
System.out.println("Connect layer added first");
return layeredPane;
}
}

but it makes all connections hidden.
Is there any other alternate available to send connections on the back and bring editparts on the top?

cheers,
Re: Connection Layer on the back [message #989693 is a reply to message #989678] Fri, 07 December 2012 05:31 Go to previous messageGo to next message
Jan Krakora is currently offline Jan Krakora
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
That's probably because the contents of the primary layer is an opaque figure.
Re: Connection Layer on the back [message #989718 is a reply to message #989693] Fri, 07 December 2012 07:24 Go to previous message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 500
Registered: June 2011
Senior Member
thanks!
Previous Topic:Separate view model and business model
Next Topic:FlowlayoutEditPolicy
Goto Forum:
  


Current Time: Fri Aug 01 06:03:38 EDT 2014

Powered by FUDForum. Page generated in 0.14294 seconds