|
Re: one problem at PolylineConnection.class [GEF] [message #210851 is a reply to message #210779] |
Mon, 06 March 2006 10:18  |
Eclipse User |
|
|
|
If you always want connections at the back, then you could change the order
in which the layers are created in the root edit part for your Editor.
i.e.
/**
* Creates a layered pane and the layers that should be printed.
* @see org.eclipse.gef.print.PrintGraphicalViewerOperation
* @return a new LayeredPane containing the printable layers
*/
protected LayeredPane createPrintableLayers() {
FreeformLayeredPane layeredPane = new FreeformLayeredPane();
// Create connection layer first so that it will always be on the bottom
layeredPane.add(new ConnectionLayer(), CONNECTION_LAYER);
layeredPane.add(new FreeformLayer(), PRIMARY_LAYER);
return layeredPane;
}
-Steve
"veinson.fu" <fusiju@realtek.com.tw> wrote in message
news:duh1j5$10g$1@eclipse.org...
> Because i want to draw connected line At GEF, i implement NodeEditPart for
> my EditPart.
> But i occure one problem which i wish that the CONNECTION_LAYER is the
back
> and the other figures
> are the front.
>
> ths attach file "right.png" is the picture that i want to do.
>
>
> thanks .
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03447 seconds