fill(new Arc2D.Float(x, y, width, height, startAngle, arcAngle, Arc2D.OPEN));
}
public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints) {
final GeneralPath path = new GeneralPath(GeneralPath.WIND_NON_ZERO, nPoints * 2);
path.moveTo(xPoints[0], yPoints[0]);
for (int i = 1; i < nPoints; i++) {
path.lineTo(xPoints[i], yPoints[i]);
}
draw(path);
}