Skip to main content



      Home
Home » Eclipse Projects » GEF » [Draw2d] how do i create a non transparent figure
[Draw2d] how do i create a non transparent figure [message #16757] Mon, 12 August 2002 10:08 Go to next message
Eclipse UserFriend
Hi
i'm trying to add to my editor a feedback to show when the mouse is over a
specific editpart. i made this label (draw2d Label) as a child of the
editpart's figure and it displays the text i want (when the mouse is over
a terminal it shows the terminal name). the problem is that this label is
transparent, i.e., the text is shown, but it is layed over the image of
the editpart. i prefer it to be as an image that hides all the other
things that is under its area.
any ideas
thanks
yoav
p.s.
i've looked into the sources of draw2d and found out that the tooltip is
created in a different shell then the rest of the application, i hope that
this is not the only solution :-)
Re: [Draw2d] how do i create a non transparent figure [message #16760 is a reply to message #16757] Mon, 12 August 2002 12:46 Go to previous message
Eclipse UserFriend
Originally posted by: hudsonr.spam.com

figure.setOpaque(true)

"Yoav Rubin" <yoav@il.ibm.com> wrote in message
news:aj8fhf$m7n$1@rogue.oti.com...
> Hi
> i'm trying to add to my editor a feedback to show when the mouse is over a
> specific editpart. i made this label (draw2d Label) as a child of the
> editpart's figure and it displays the text i want (when the mouse is over
> a terminal it shows the terminal name). the problem is that this label is
> transparent, i.e., the text is shown, but it is layed over the image of
> the editpart. i prefer it to be as an image that hides all the other
> things that is under its area.
> any ideas
> thanks
> yoav
> p.s.
> i've looked into the sources of draw2d and found out that the tooltip is
> created in a different shell then the rest of the application, i hope that
> this is not the only solution :-)

What is wrong with this solution? What would be simpler?

>
Previous Topic:Rotate Action
Next Topic:Standalone shapes demo
Goto Forum:
  


Current Time: Sun Jun 01 00:05:50 EDT 2025

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

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

Back to the top