Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » relocating connection labels.
relocating connection labels. [message #209131] Sat, 11 February 2006 18:56 Go to next message
Eclipse UserFriend
Originally posted by: dutz.c-ware.de

Hi,

I am using a labeled connection which I derived from PolylineConnection by
adding a label as child and locating it using a RelativeLocator. So far so
good. I added
labelLocator.relocate(label);
to the labels validate-method. Now the labels are nicely positioned when
connection and changing connection endpoints. Unfortunately they are not
correctly when doing editor layouting (opening the editor, resising, ...).
Any hints?

Help greatly appreciated.

Chris
Re: relocating connection labels. [message #209180 is a reply to message #209131] Sun, 12 February 2006 11:49 Go to previous message
Eclipse UserFriend
Originally posted by: dutz.c-ware.de

Ok ... after another Google-Extreeme session I finally managed to find the
MidpointLocator ... Mabe it would be relay good to have a sort of map of all
"tools" you can have. It seems evrything I can think of is allready
invented, but I simply can't find it ;)

But I do wonder why the MidpointLocator positions nicely and the
RelativeLocator set to Center doesn't?

Chris

"Christofer Dutz" <dutz@c-ware.de> schrieb im Newsbeitrag
news:dslc1i$t6u$1@utils.eclipse.org...
> Hi,
>
> I am using a labeled connection which I derived from PolylineConnection by
> adding a label as child and locating it using a RelativeLocator. So far so
> good. I added
> labelLocator.relocate(label);
> to the labels validate-method. Now the labels are nicely positioned when
> connection and changing connection endpoints. Unfortunately they are not
> correctly when doing editor layouting (opening the editor, resising, ...).
> Any hints?
>
> Help greatly appreciated.
>
> Chris
>
Previous Topic:Programmatically launch editor window side-by-side
Next Topic:Layout of diagram without connections
Goto Forum:
  


Current Time: Sat May 04 05:34:28 GMT 2024

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

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

Back to the top