Skip to main content


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:Editor Size
Next Topic:use a tool according to the figure selected
Goto Forum:
  


Current Time: Tue Apr 23 12:10:22 GMT 2024

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

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

Back to the top