175176177178179180181182183184185
for (int i = 2; i < coords.length; i += 2) { poly.lineTo(coords[i], coords[i + 1]); } poly.closePath(); PaintedShape ps = new PaintedShape(poly); processPaintedShapeAttributes(ps, attributes); return ps; } else if (type.equals("text")) {