Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » one problem at PolylineConnection.class [GEF]
one problem at PolylineConnection.class [GEF] [message #210779] Mon, 06 March 2006 10:06 Go to next message
veinson.fu is currently offline veinson.fuFriend
Messages: 21
Registered: July 2009
Junior Member
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 .



  • Attachment: right.png
    (Size: 1.60KB, Downloaded 118 times)
  • Attachment: wrong.png
    (Size: 1.71KB, Downloaded 116 times)
Re: one problem at PolylineConnection.class [GEF] [message #210851 is a reply to message #210779] Mon, 06 March 2006 15:18 Go to previous message
Steven R. Shaw is currently offline Steven R. ShawFriend
Messages: 128
Registered: July 2009
Senior Member
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 .
>
>
>
Previous Topic:How to draw a line?
Next Topic:UMLClass diagram of GEF
Goto Forum:
  


Current Time: Wed Nov 30 05:05:39 GMT 2022

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

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

Back to the top