Lable outside the figure [message #209504] |
Wed, 15 February 2006 16:52  |
Eclipse User |
|
|
|
Hi,
when we create a Polylineconnection we are able to add labels "outside"
of the label. If we use the implementation of GMF we are able to move
the label.
Now we want to do the same thing for a "normal" figure. Is it possible
to create a figure which has a label outside? The label should be
moveable and the label's position is relative to the figure
*******************
* *
* *
* *
* *
*******************
HelloWorld
Now we move the label:
*******************
* *
* * HelloWorld
* *
* *
*******************
And now the figure:
*******************
* *
* * HelloWorld
* *
* *
*******************
Best regards,
Stefan
|
|
|
Re: Lable outside the figure [message #209527 is a reply to message #209504] |
Wed, 15 February 2006 19:25   |
Eclipse User |
|
|
|
Hi,
I have had the same problem. I have solved them that
the label and the 'normal figure' have the same parent.
/---Label
parentContainer --/
\
\---Figure
.....AND the Figure has a Reference to the label.
If you move the Figure you must move the Label with the diff. too.
If you move the Label do nothing with the parent.
Now the Label has always the same relative position to the Figure.
greetings
Andreas
|
|
|
Re: Lable outside the figure [message #209561 is a reply to message #209527] |
Thu, 16 February 2006 08:48   |
Eclipse User |
|
|
|
Hi,
thanks for the answer. I have considered a similar solution but as far
as I understand the parent container will do clipping to its children so
I have to resize the aprent container if I move the Label around.
This will generate huge invisible parent container which have to be
synchronized when dragging labels around.
Greetings,
Stefan
FreeGroup wrote:
> Hi,
>
> I have had the same problem. I have solved them that
> the label and the 'normal figure' have the same parent.
>
> /---Label
> parentContainer --/
> \
> \---Figure
>
> ....AND the Figure has a Reference to the label.
>
> If you move the Figure you must move the Label with the diff. too.
> If you move the Label do nothing with the parent.
>
> Now the Label has always the same relative position to the Figure.
>
>
>
> greetings
>
> Andreas
|
|
|
|
Powered by
FUDForum. Page generated in 0.03161 seconds