[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Re: fillGradient on a Figure
|
Perhaps the figure had no size and therefore didn't paint?? fill is set to
true by default in Shape.
"Stefan Knieling" <prooteus_NOSPAM@xxxxxxx> wrote in message
news:dj0k8u$vni$1@xxxxxxxxxxxxxxxxxxx
> Hi,
>
>> You could switch to using a plain Figure for the content pane and it
>> wouldn't cover up your gradient.
>
> I've done so and overridden paintFigure(Graphics g). Now the gradient
> works fine :-)
>
>> Put a breakpoint to see if the method is called. Also, the foreground and
>> BG colors are important.
>
> I put a breakpoint. The method fillShape(Graphics g) of RectangleFigure
> was never called...
>
> Thx a lot.