list.update(originalShape, shape);
dispose();
}
private LinkShape getCurrentShape() {
LinkShape currentShape = (LinkShape) shape.clone();
currentShape.setName(name.getText());
currentShape.curviness(Double.parseDouble(curviness.getText()));
for (int i = 0; i < dashes.length; i++) {
int index = dashes[i].getSelectedIndex();
currentShape.setLineVisible(i, index != 0);
currentShape.setDashiness(i, org.nlogo.shape.LinkLine.dashChoices[index]);
}
return currentShape;
}