relocating connection labels. [message #209131] |
Sat, 11 February 2006 18:56 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.03422 seconds