Problem with figures in draw2d [message #236432] |
Wed, 27 June 2007 17:25 |
Eclipse User |
|
|
|
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 #236453 is a reply to message #236439] |
Wed, 27 June 2007 21:15 |
Eclipse User |
|
|
|
Originally posted by: martin.lindblad.gmail.com
Thanks Anthony
It worked great for all figures except for the root figure that is of
type FreeformLayer. Do you know what to to about that one?
One more thing. I do require zoom, do you know if there is a workaround
for solving that problem?
Thanks again
Martin
Anthony Hunter skrev:
> Hi Martin,
>
> Attached is an example for a GradientRectangleFigure.
>
> Note that setBackgroundPattern() is not implemented by ScaledGraphics. This
> may be a problem for you if you require zoom or print support.
>
> Cheers...
> Anthony
>
> "Martin" <martin.lindblad@gmail.com> wrote in message
> news:f5u6ij$44t$2@build.eclipse.org...
>> 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
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02994 seconds