cbRatio = new JCheckBox(resources.getString("FixedRatio"), false);
// Transform properties
lTransformation = new JLabel(resources.getString("transformation"));
editTransformButton = resources.getButton("editTransform", new ActionListener() {
public void actionPerformed(ActionEvent e) {
NamedProperties res;
if (transform == null) {
res = AffineTransformDataPanel.showDialog(PropertiesPanel1D.this.getOwner(), resources
.getString("transformationTitle"), new AffineTransformData());
} else {
res = AffineTransformDataPanel.showDialog(PropertiesPanel1D.this.getOwner(), resources
.getString("transformationTitle"), transform);
}
if (res != null) {
if (transform == null) {
transform = new AffineTransformData();
}
String[] props = res.getPropertyNames();
if (props != null) {
for (int j = 0; j < props.length; j++) {
String pname = props[j];
Object value = res.getPropertyValue(pname);
transform.setPropertyValue(pname, value);
}
// Update transform with last related data
// source values
transform.notificationEnd(null);