commands = calculateSegment(slice);
if (i < shadows.size()) {
shadow = (PathSprite) shadows.get(i);
shadow.setHidden(false);
} else {
shadow = (PathSprite) shadowAttr.copy();
shadow.setFill(Color.NONE);
chart.addSprite(shadow);
shadows.add(shadow);
}