Lines Matching refs:xPoints
744 * @param xPoints an array of <i>x</i> points
750 public void drawPolyline(int xPoints[], int yPoints[],
753 int x = xPoints[0];
757 drawLine(x, y, xPoints[i], yPoints[i]);
758 x = xPoints[i];
773 * <code>(xPoints[i - 1], yPoints[i - 1])</code>
774 * to <code>(xPoints[i], yPoints[i])</code>, for
778 * @param xPoints a an array of <code>x</code> coordinates.
785 public void drawPolygon(int xPoints[], int yPoints[],
788 drawPolyline(xPoints, yPoints, nPoints);
789 drawLine(xPoints[nPoints - 1], yPoints[nPoints - 1],
790 xPoints[0], yPoints[0]);
802 * <code>(xPoints[i - 1], yPoints[i - 1])</code>
803 * to <code>(xPoints[i], yPoints[i])</code>, for
810 * @param xPoints a an array of <code>x</code> coordinates.
816 public void fillPolygon(int xPoints[], int yPoints[],
819 int minX = xPoints[0];
821 int maxX = xPoints[0];
826 if (xPoints[i] < minX) {
827 minX = xPoints[i];
828 } else if (xPoints[i] > maxX) {
829 maxX = xPoints[i];