Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Setting labels transparent on a gradient (RSM like)
Setting labels transparent on a gradient (RSM like) [message #195821] Fri, 04 July 2008 22:47 Go to next message
Eclipse UserFriend
Originally posted by: zippo29.hotmail.fr

Hi All!

Does anyone know about how to make labels transparent on a gradient like
in RSM ? I tried several but no one works.

Thanks in advance
Re: Setting labels transparent on a gradient (RSM like) [message #195889 is a reply to message #195821] Mon, 07 July 2008 07:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zippo29.hotmail.fr

Hi

To be more precise, it's about how to add element in a compartment
(atttribute to a class for example) and preserving the gradient i-e there
is no blank border. I think I have to make the compartment transparent but
I don't know how! The setOpaque(false) does not work.

thanks
Re: Setting labels transparent on a gradient (RSM like) [message #195896 is a reply to message #195889] Mon, 07 July 2008 07:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zippo29.hotmail.fr

NeverMind!

I always ask questions too quickly! Anyway if someone is interested :

I created a class that extends RectangleFigure and made the compartment
attribute in my container class figure instance of this class.

In the new class I overrided the fillShape method :
fillShape(Graphics g){ g.setAlpha(0);}

That's it

Sorry
Re: Setting labels transparent on a gradient (RSM like) [message #199450 is a reply to message #195896] Wed, 30 July 2008 02:03 Go to previous messageGo to next message
Hasan Ceylan is currently offline Hasan CeylanFriend
Messages: 198
Registered: July 2009
Senior Member
On Mon, 07 Jul 2008 07:58:03 +0000, Mous wrote:

Actually the correct way to handle this would be to set opaque to false...

> NeverMind!
>
> I always ask questions too quickly! Anyway if someone is interested :
>
> I created a class that extends RectangleFigure and made the compartment
> attribute in my container class figure instance of this class.
>
> In the new class I overrided the fillShape method : fillShape(Graphics
> g){ g.setAlpha(0);}
>
> That's it
>
> Sorry
Re: Setting labels transparent on a gradient (RSM like) [message #199495 is a reply to message #199450] Wed, 30 July 2008 07:35 Go to previous message
Eclipse UserFriend
Originally posted by: zippo29.hotmail.fr

Hi,

I tried back then but it did not work! I may have made a mistake i will
try again and see

Thanks anyway
Regards
Previous Topic:[GMF Dashboard] 'Type Link Model Facet' error
Next Topic:scalable polygon transparent
Goto Forum:
  


Current Time: Fri Dec 19 12:18:38 GMT 2014

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

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