Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsSetting labels transparent on a gradient (RSM like)
https://www.eclipse.org/forums/index.php/mv/msg/62072/195821/#msg_195821
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]]>2008-07-04T22:47:58-00:00Re: Setting labels transparent on a gradient (RSM like)
https://www.eclipse.org/forums/index.php/mv/msg/62072/195889/#msg_195889
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]]>2008-07-07T07:27:39-00:00Re: Setting labels transparent on a gradient (RSM like)
https://www.eclipse.org/forums/index.php/mv/msg/62072/195896/#msg_195896
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]]>2008-07-07T07:58:03-00:00Re: Setting labels transparent on a gradient (RSM like)
https://www.eclipse.org/forums/index.php/mv/msg/62072/199450/#msg_199450
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]]>Hasan Ceylan2008-07-30T02:03:46-00:00Re: Setting labels transparent on a gradient (RSM like)
https://www.eclipse.org/forums/index.php/mv/msg/62072/199495/#msg_199495
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