Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Gradients on rounded rectangles
Gradients on rounded rectangles [message #232830] Wed, 11 April 2007 06:10 Go to next message
Andy Evans is currently offline Andy EvansFriend
Messages: 61
Registered: July 2009
Member
Has anyone had any experience of adding gradients to
rounded rectangles? They seem to be supported by plain
rectangles but not rounded ones.

Thanks,

Andy
Re: Gradients on rounded rectangles [message #232947 is a reply to message #232830] Fri, 13 April 2007 15:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ingo.koch[nospam].sap.com

I had good results just painting the gradient in the rectangle "between" the
corners
and fill the rest with the appropiate gradient start and end color.





"ase" <andye@xactium.com> wrote in message
news:evhu4g$kgp$1@build.eclipse.org...
> Has anyone had any experience of adding gradients to
> rounded rectangles? They seem to be supported by plain
> rectangles but not rounded ones.
>
> Thanks,
>
> Andy
>
Re: Gradients on rounded rectangles [message #233031 is a reply to message #232947] Mon, 16 April 2007 14:28 Go to previous message
Andy Evans is currently offline Andy EvansFriend
Messages: 61
Registered: July 2009
Member
Thanks Ingo,

I'd thought of doing that, but wasn't sure how to fill the rest with the
appropiate
gradient start and end color. If I filled the rounded rectangle with a
non-gradient
colour, one of the ends would not match. Any thoughts, or even better, a
code
snippet - I'm quite new to Java and GEF!

Cheers,

Andy

"Ingo Koch" <ingo.koch[nospam]@sap.com> wrote in message
news:evo7uq$7q2$1@build.eclipse.org...
>I had good results just painting the gradient in the rectangle "between"
>the corners
> and fill the rest with the appropiate gradient start and end color.
>
>
>
>
>
> "ase" <andye@xactium.com> wrote in message
> news:evhu4g$kgp$1@build.eclipse.org...
>> Has anyone had any experience of adding gradients to
>> rounded rectangles? They seem to be supported by plain
>> rectangles but not rounded ones.
>>
>> Thanks,
>>
>> Andy
>>
>
>
Previous Topic:problems marqueeing editpart
Next Topic:change the color of the editor background
Goto Forum:
  


Current Time: Fri Dec 15 20:10:38 GMT 2017

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

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