[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Re: fillGradient on a Figure
|
Overriding fillShape() to invoke fillGradient(getBounds(), bool) should
work. Maybe you need to relaunch your application to see the change?
"Stefan Knieling" <prooteus_NOSPAM@xxxxxxx> wrote in message
news:dj0dsu$miv$1@xxxxxxxxxxxxxxxxxxx
> Hi,
>
> I've got a Figure which contains a title bar and a content pane. The
> content pane is of type 'RectangleFigure'. I would like to fill the
> content pane with a gradient color.
>
> Overriding the paintFigure(Graphics g) method did not succeed:
>
> paintFigure(Graphics g) {
> super.paintFigure(g);
> g.fillGradient(this.getContentPane().getClientArea(), true);
> }
>
> Then I thought of overriding the method fillShape(Graphics g) of
> RectangleFigure but that did not work either. The colors aren't changed
> in any way.
>
> Could someone please give me a hint.
>
> Thanks in advance.
> Stefan
>