public void assignPointAndType() { currentPolygon = multiPolygon.getPolygon(polygonNum); if (index == 0) { currentPoint = currentPolygon.getPoint(0); type = PathIterator.SEG_MOVETO; } else if (index == currentPolygon.points.size()) { type = PathIterator.SEG_CLOSE; } else { currentPoint = currentPolygon.getPoint(index); type = PathIterator.SEG_LINETO; } }
PolygonMultiIterator(ga_PolygonMulti kPolygon, AffineTransform at) { this.multiPolygon = kPolygon; this.affine = at; currentPolygon = multiPolygon.getPolygon(polygonNum); currentPoint = currentPolygon.getPoint(0); }