}*/
public boolean propertyValueChanged(String propertyName, Object newValue, Object oldValue) {
boolean updDS = false;
DrawSettings dsCopy = new DrawSettings();
readValues(dsCopy);
if (propertyName.equals(propShowVerticesEnable.getName())) {
if (newValue instanceof Boolean) {
dsCopy.setEnableShowVertices(((Boolean)newValue).booleanValue());
updDS = true;
}
}
else if (propertyName.equals(propAutocompleteEnable.getName())) {
if (newValue instanceof Boolean) {
dsCopy.setEnableAutocomplete(((Boolean)newValue).booleanValue());
propAutocompleteVertices.setEditable(dsCopy.isEnableAutocomplete());
updDS = true;
}
}
else if (propertyName.equals(propFillShape.getName())) {
if (newValue instanceof Boolean) {
dsCopy.setEnableFillShape(((Boolean)newValue).booleanValue());
updDS = true;
}
}
else if (propertyName.equals(propAutocompleteVertices.getName())) {
if (newValue instanceof String) {
dsCopy.setNrOfAutocompleteVertices(Integer.parseInt(newValue.toString()));
updDS = true;
}
}
else if (propertyName.equals(propTransparens.getName())) {
if (newValue instanceof String) {
dsCopy.setFillTransparency(Integer.parseInt(newValue.toString()));
updDS = true;
}
}
else if (propertyName.equals(propLineStroke.getName())) {
if (newValue instanceof String) {
dsCopy.setLineStroke(Float.parseFloat(newValue.toString()));
updDS = true;
}
}
else if (propertyName.equals(propAttachToGrid.getName())) {
if (newValue instanceof Boolean) {
dsCopy.setAttachToGrid(((Boolean)newValue).booleanValue());
updDS = true;
}
}
if(updDS){