ChartDirector 7.0 (Java Edition)

DrawArea.polygon


Usage

public void polygon(int[] x, int[] y, int edgeColor, int fillColor)

Description

Draws a polygon.

Arguments

ArgumentDefaultDescription
x(Mandatory)An array of numbers representing the x coordinates of the vertices of a polygon.
y(Mandatory)An array of numbers representing the y coordinates of the vertices of a polygon.
edgeColor(Mandatory)The border color. To disable border, set the edgeColor the same as the fillColor.
fillColor(Mandatory)The fill color. To disable filling, set the fillColor to Transparent.

Return Value

None