JPlanner Programmer's Guide
GradientBrush Members
Constructors Methods
 


Represents a gradient brush which paints the interior of objects starting with one color and gradually changing to another color by interpolating the RGB values of the two colors.

The following tables list the members exposed by the GradientBrush type.

 Public Constructors

  Name Description

GradientBrush

Overloaded. Initializes a new instance of the GradientBrush class.

 Public Methods

  Name Description

clone

Creates a clone of the brush.

dispose

Disposes the graphics resources associated with the brush, if any. (Inherited from Brush.)

getAngle

Gets the gradient orientation angle.

getColor1

Gets the first gradient color.

getColor2

Gets the second gradient color.

getInterpolationColors

Gets a ColorBlend that defines a multicolor linear gradient. A ColorBlend contains corresponding arrays of colors and positions. The positions are values from 0 through 1 that specify the percentage of the distance along the gradient line where the corresponding color is located.

readExternal

Externalizable.readExternal implementation.

setAngle

Gets the gradient orientation angle.

setColor1

Sets the first gradient color.

setColor2

Sets the second gradient color.

setInterpolationColors

Sets a ColorBlend that defines a multicolor linear gradient. A ColorBlend contains corresponding arrays of colors and positions. The positions are values from 0 through 1 that specify the percentage of the distance along the gradient line where the corresponding color is located.

writeExternal

Externalizable.writeExternal implementation.

 See Also

GradientBrush Class
com.mindfusion.drawing Namespace