Set PlotPanel domain axis after selector change
This commit is contained in:
parent
ff56d40583
commit
84b1434f09
@ -70,6 +70,13 @@ public class CAPlotPanel extends PlotPanel<CADataType, CADataBranch, CADataTypeG
|
||||
parent.getComponentsForType(type), configuration);
|
||||
}
|
||||
|
||||
public void setXAxis(CADomainDataType type) {
|
||||
if (modifying > 0 || type == null)
|
||||
return;
|
||||
configuration.setDomainAxisType(type);
|
||||
setToCustom();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setDefaultConfiguration(CAPlotConfiguration newConfiguration) {
|
||||
super.setDefaultConfiguration(newConfiguration);
|
||||
|
@ -167,7 +167,8 @@ public class ComponentAnalysisPlotExportDialog extends JDialog {
|
||||
parameterSelector.addActionListener(new ActionListener() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
updateModels(getSelectedParameter());
|
||||
CADomainDataType type = getSelectedParameter();
|
||||
updateModels(type);
|
||||
minSpinner.setModel(minModel.getSpinnerModel());
|
||||
maxSpinner.setModel(maxModel.getSpinnerModel());
|
||||
deltaSpinner.setModel(deltaModel.getSpinnerModel());
|
||||
@ -181,6 +182,10 @@ public class ComponentAnalysisPlotExportDialog extends JDialog {
|
||||
minUnitSelector.setSelectedUnit(minModel.getCurrentUnit());
|
||||
maxUnitSelector.setSelectedUnit(maxModel.getCurrentUnit());
|
||||
deltaUnitSelector.setSelectedUnit(deltaModel.getCurrentUnit());
|
||||
|
||||
if (plotTab != null) {
|
||||
plotTab.setXAxis(type);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user