[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Re: one problem at PolylineConnection.class [GEF]
|
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@xxxxxxxxxxxxxx> wrote in message
news:duh1j5$10g$1@xxxxxxxxxxxxxx
> 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 .
>
>
>