|
|
|
@ -55,17 +55,21 @@ public class MinMaxValuePane extends JPanel {
|
|
|
|
|
return new double[]{p, p, p, p}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void addComponentListener(Component[][] components) { |
|
|
|
|
protected void addComponentListener(Component[][] components) { |
|
|
|
|
for (int i = 0; i < components.length; i++) { |
|
|
|
|
((UICheckBox) components[i][0]).addActionListener(new ActionListener() { |
|
|
|
|
addListener((UICheckBox) components[i][0]); |
|
|
|
|
ChartSwingUtils.addListener((UICheckBox) components[i][0], (UITextField) components[i][1]); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void addListener(UICheckBox checkBox) { |
|
|
|
|
checkBox.addActionListener(new ActionListener() { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
|
checkBoxUse(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
ChartSwingUtils.addListener((UICheckBox) components[i][0], (UITextField) components[i][1]); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected Component[][] getPanelComponents() { |
|
|
|
@ -77,7 +81,7 @@ public class MinMaxValuePane extends JPanel {
|
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void checkBoxUse() { |
|
|
|
|
private void checkBoxUse() { |
|
|
|
|
minValueField.setEnabled(minCheckBox.isSelected()); |
|
|
|
|
maxValueField.setEnabled(maxCheckBox.isSelected()); |
|
|
|
|
|
|
|
|
|