for (double i=0; i<colors.length; i++) {
//newRadians = startRadians + stepRadians * (i + 2d);
//newX = centerX + Math.cos(newRadians) * radiusX / 1.1d;
//newY = centerY + Math.sin(newRadians) * radiusY / 1.1d;
//Polygon shape = new Polygon(oldX, oldY, centerX, centerY, newX, newY, oldX, oldY);
final Arc shape = new Arc(centerX, centerY, radiusX / 1.1d, radiusY / 1.1d, angle, angleLength);
angle += angleLength;
shape.setType(ArcType.ROUND);
shape.setSmooth(false);
shape.setCache(true);
shape.setCacheHint(CacheHint.SPEED);
shape.setFill(colors[(int)i]);
shape.setStroke(colors[(int)i]);
shape.setStrokeWidth(angleLength);
shape.setStrokeType(StrokeType.INSIDE);
group.getChildren().add(shape);
//oldX = newX;
//oldY = newY;
}
//final Ellipse cap = new Ellipse(radiusX, radiusY);