Add decoration to EditPart? [message #229837] |
Thu, 25 January 2007 17:14 |
Eclipse User |
|
|
|
Originally posted by: devconsole.gmail.com
Is it possible to add a decoration to an EditPart?
I would simply like to place a label next to an EditPart without the
label being a part of the EditPart. Meaning when you select the EditPart
the associated label should not be selected.
|
|
|
|
Re: Add decoration to EditPart? [message #229860 is a reply to message #229846] |
Thu, 25 January 2007 19:03 |
Eclipse User |
|
|
|
Originally posted by: devconsole.gmail.com
Nhu Le wrote:
> If you want a label that is always at the same location wrt the figure,
> then you have to create your own figure with some transparent border to
> put the label (to create the illusion that the label is outside the
> figure). Look into getHandleBounds() of interface HandleBounds.
The HandleBounds interface is exactly what I was looking for, thank you
very much.
Now I simply use a Label with an icon and let getHandleBounds() return
the value of getIconBounds()..
|
|
|
Re: Add decoration to EditPart? [message #233159 is a reply to message #229860] |
Wed, 18 April 2007 09:40 |
Eclipse User |
|
|
|
Originally posted by: achassagne.gmail.com
Dave Console a écrit :
> I would simply like to place a label next to an EditPart without the label being a part of the EditPart.
> Meaning when you select the EditPart the associated label should not be selected.
Hi Dave!
I wanted to do exactly the same thing...
I tried the solution proposed by Nhu but the part of the figure that is
outside the handle bounds is still selectable this way, which is not
what we wanted... or am I missing something?
Thanks for your help!
Regards,
Arnaud
|
|
|
Re: Add decoration to EditPart? [message #233223 is a reply to message #233159] |
Thu, 19 April 2007 07:26 |
Eclipse User |
|
|
|
Originally posted by: achassagne.gmail.com
Arnaud Chassagne a écrit :
> Dave Console a écrit :
>> I would simply like to place a label next to an EditPart without the
>> label being a part of the EditPart. Meaning when you select the
>> EditPart the associated label should not be selected.
>
> Hi Dave!
>
> I wanted to do exactly the same thing...
> I tried the solution proposed by Nhu but the part of the figure that is
> outside the handle bounds is still selectable this way, which is not
> what we wanted... or am I missing something?
>
> Thanks for your help!
> Regards,
>
> Arnaud
Anyone else has an idea? please...
|
|
|
Powered by
FUDForum. Page generated in 0.03811 seconds