Draws a sequence of connected lines defined by arrays of x and y coordinates. Each pair of (x, y) coordinates defines a point. The figure is not closed if the first point differs from the last point.
@param xPoints an array of x points
@param yPoints an array of y points
@param nPoints the total number of points
@see java.awt.Graphics#drawPolygon(int[],int[],int)
@since JDK1.1
Draws the polyline which is defined by the specified array of integer coordinates, using the receiver's foreground color. The array contains alternating x and y values which are considered to represent points which are the corners of the polyline. Lines are drawn between each consecutive pair, but not between the first pair and last pair in the array.
@param pointArray an array of alternating x and y values which are the corners of the polyline
@exception IllegalArgumentException
ERROR_NULL_ARGUMENT - if the point array is null
@exception SWTException
ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.