GC.fillGradientRectangle

Fills the interior of the specified rectangle with a gradient sweeping from left to right or top to bottom progressing from the receiver's foreground color to its background color.

@param x the x coordinate of the rectangle to be filled @param y the y coordinate of the rectangle to be filled @param width the width of the rectangle to be filled, may be negative (inverts direction of gradient if horizontal) @param height the height of the rectangle to be filled, may be negative (inverts direction of gradient if vertical) @param vertical if true sweeps from top to bottom, else sweeps from left to right

@exception SWTException <ul> <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> </ul>

@see #drawRectangle(int, int, int, int)

class GC
void
fillGradientRectangle
(
int x
,
int y
,
int width
,
int height
,
)

Meta