This method draws the polygon defined by nPoint line segments, where the first nPoint - 1 line segments are line segments from (xPoints[i - 1], yPoints[i - 1]) to (xPoints[i], yPoints[i]), for 1 ≤ i ≤ nPoints. The figure is automatically closed by drawing a line connecting the final point to the first point, if those points are different.
@param xPoints a an array of x coordinates.
@param yPoints a an array of y coordinates.
@param nPoints a the total number of points.
@see java.awt.Graphics#fillPolygon
@see java.awt.Graphics#drawPolyline
GraphicsContext.
@param parent parent group object
@param name The Polygon's name.
@param polygon The Polygon to be drawn.
@param style The styling object for the Polygon.
A polygon is the same as a multiple line except that it's a closed path.
@see #fill() @see #fillStroke() @see #stroke() @since 0.0.7 @param points Points. | |
| |
| |
| |
| |
| |
| |
| |
| |
| |