Use min model for max and vice versa

This commit is contained in:
SiboVG 2024-08-23 23:16:38 +02:00
parent 583890a6b8
commit e2d07be481

View File

@ -211,9 +211,9 @@ public class ComponentAnalysisPlotExportDialog extends JDialog {
if (type == null) {
throw new IllegalArgumentException("CADomainDataType cannot be null");
}
// TODO: use the maxModel for the max value of minModel and vice versa?
this.minModel = new DoubleModel(type, "Min", 0);
this.maxModel = new DoubleModel(type, "Max", 0);
this.maxModel = new DoubleModel(type, "Max", minModel);
this.minModel.setMaxModel(maxModel);
this.deltaModel = new DoubleModel(type, "Delta", type.getMinDelta());
}