// create a GeneralPath containing GeneralPathes
GeneralPath path = new GeneralPath(
renderer.getWindingRule());
// iterate the polgons
Point p;
for (int polygon = 0; polygon < numberOfPoints.length; polygon++) {
// create a new member of path
GeneralPath gp = new GeneralPath(
renderer.getWindingRule());
for (int point = 0; point < numberOfPoints[polygon]; point ++) {
// add a point to gp
p = points[polygon][point];
if (point > 0) {
gp.lineTo((float) p.getX(), (float)p.getY());
} else {
gp.moveTo((float) p.getX(), (float)p.getY());
}
}
// close the member, add it to path
if (closePath) {