Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Problem with figures in draw2d!
Problem with figures in draw2d! [message #218430] Wed, 27 June 2007 15:52 Go to next message
Eclipse UserFriend
Originally posted by: martin.lindblad.gmail.com

Hi!

I'm trying to use gradients on my figures, using draw2d. But I have some
trouble with that. In the paint method of the root figure, I use the
setBackgroundPattern, and to make it visible I call the method
fillRectangle. But that make all my other childfigures disappear because
of the fillRectangle method.
Is there a way to make gradients on figures instead of using the Graphic
object? Or how can I otherwise solve th problem?

Many thanks

Martin
Re: Problem with figures in draw2d! [message #218458 is a reply to message #218430] Wed, 27 June 2007 16:11 Go to previous messageGo to next message
Mark Dexter is currently offline Mark DexterFriend
Messages: 324
Registered: July 2009
Senior Member
Martin wrote:
> Hi!
>
> I'm trying to use gradients on my figures, using draw2d. But I have some
> trouble with that. In the paint method of the root figure, I use the
> setBackgroundPattern, and to make it visible I call the method
> fillRectangle. But that make all my other childfigures disappear because
> of the fillRectangle method.
> Is there a way to make gradients on figures instead of using the Graphic
> object? Or how can I otherwise solve th problem?
>
> Many thanks
>
> Martin
Hi. You might have better luck on the eclipse.platform.swt newsgroup.
Hope this helps. Mark Dexter
Re: Problem with figures in draw2d! [message #218472 is a reply to message #218458] Wed, 27 June 2007 16:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Mark/Martin,

Probably the GEF newsgroup is even more specific:
news://news.eclipse.org/eclipse.tools.gef


Mark Dexter wrote:
> Martin wrote:
>> Hi!
>>
>> I'm trying to use gradients on my figures, using draw2d. But I have
>> some trouble with that. In the paint method of the root figure, I use
>> the setBackgroundPattern, and to make it visible I call the method
>> fillRectangle. But that make all my other childfigures disappear
>> because of the fillRectangle method.
>> Is there a way to make gradients on figures instead of using the
>> Graphic object? Or how can I otherwise solve th problem?
>>
>> Many thanks
>>
>> Martin
> Hi. You might have better luck on the eclipse.platform.swt newsgroup.
> Hope this helps. Mark Dexter
Re: Problem with figures in draw2d! [message #218486 is a reply to message #218472] Wed, 27 June 2007 17:23 Go to previous message
Eclipse UserFriend
Originally posted by: martin.lindblad.gmail.com

Ok, I will try there instead.

Thanks

/Martin

Ed Merks skrev:
> Mark/Martin,
>
> Probably the GEF newsgroup is even more specific:
> news://news.eclipse.org/eclipse.tools.gef
>
>
> Mark Dexter wrote:
>> Martin wrote:
>>> Hi!
>>>
>>> I'm trying to use gradients on my figures, using draw2d. But I have
>>> some trouble with that. In the paint method of the root figure, I use
>>> the setBackgroundPattern, and to make it visible I call the method
>>> fillRectangle. But that make all my other childfigures disappear
>>> because of the fillRectangle method.
>>> Is there a way to make gradients on figures instead of using the
>>> Graphic object? Or how can I otherwise solve th problem?
>>>
>>> Many thanks
>>>
>>> Martin
>> Hi. You might have better luck on the eclipse.platform.swt newsgroup.
>> Hope this helps. Mark Dexter
Previous Topic:How to use the Minimized stacks?
Next Topic:creating a library
Goto Forum:
  


Current Time: Fri Apr 26 09:44:39 GMT 2024

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

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

Back to the top