Fill Area Attributes

FillOutlineType

FillOutlineType is an integer-value attribute that turns on or off the drawing of an outline around filled areas. Its value should be FILL_TYPE_NONE (for outline off) or FILL_TYPE_SOLID (for outline on). The default is to draw solid lines.

FillOutlineColor

FillOutlineColor is a Color-valued attribute that determines the color used to outline the filled regions. The outline is drawn only if the attribute FillOutlineType has the value FILL_TYPE_SOLID. Its default value is Color.black.

FillType

FillType is an integer-value attribute that turns on or off the drawing of the interior of filled areas. Its value should be

      FILL_TYPE_NONE for fill off.

      FILL_TYPE_SOLID for fill by a single, solid color. This is the default.

      FILL_TYPE_GRADIENT for fill by a color gradient.

      FILL_TYPE_PAINT for fill by a Paint object. This is usually a TexturePaint object.

FillColor

FillColor is a Color-valued attribute that determines the color used to fill a region with a solid color. Its default value is Color.black.

Gradient

Gradient is a Color array-valued attribute that fills a region with a gradient color. It does not have a default value.

The value of Gradient should be an array of four colors. These are the colors at the four corners of a square. In order they are: lower-left, lower-right, upper-right and upper-left.

      If the lower-side colors are equal (color[0] equals color[1]) and the upper-side colors are equal (color[2] equals color[3]), then a vertical gradient is drawn.

      If the left-side colors are equal (color[0] equals color[3]) and the right-side col­ors are equal (color[1] equals color[2]), then a horizontal gradient is drawn.

      If the lower-right and upper-left colors (color[1] and color[3]) are null, then a diagonal gradient is drawn using the lower-left (color[0]) and upper-right (color[2]) colors.

      If the lower-left and upper-right colors (color[0] and color[2]) are null, then a diagonal gradient is drawn using the lower-right (color[1]) and upper-left (color[3]) colors.

 

If none of the above patterns exist, then no gradient is drawn.

 

Vertical

setGradient(Color.red, Color.red, Color.yellow, Color.yellow)

Horizontal

setGradient(Color.yellow, Color.red, Color.red, Color.yellow)

Diagonal

setGradient(Color.yellow, null, Color.red, null)

Diagonal

setGradient(null, Color.yellow, null, Color.red)



Visual Numerics - Developers of IMSL and PV-WAVE
http://www.vni.com/
PHONE: 713.784.3131
FAX:713.781.9260