Commit 6c3ee934 authored by BZoennchen's avatar BZoennchen

small improvment of the postvis control.

parent 30789e14
Pipeline #127218 passed with stages
in 116 minutes and 7 seconds
......@@ -46,7 +46,7 @@ public class AdjustPanel extends JPanel implements Observer {
// sStep.setEditable(false);
sModelVelocity = new SpinnerNumberModel(model.config.getFps(), 1, 200, 1);
sModelTimeStep = new SpinnerNumberModel(1, 1, Integer.MAX_VALUE, 1);
sModelTime = new SpinnerNumberModel(0.0, 0.0, Double.MAX_VALUE, 0.01);
sModelTime = new SpinnerNumberModel(0.0, 0.0, Double.MAX_VALUE, model.getVisTimeStepLength());
sModelVisTimeStepLength = new SpinnerNumberModel(model.getVisTimeStepLength(), 0.01, Double.MAX_VALUE, 0.01);
sVelocity = new JSpinner(sModelVelocity);
......@@ -117,5 +117,6 @@ public class AdjustPanel extends JPanel implements Observer {
sStep.setValue(currentStepNumber);
sTime.setValue(model.getSimTimeInSec());
sModelVisTimeStepLength.setValue(model.getVisTimeStepLength());
((SpinnerNumberModel)sModelTime).setStepSize(model.getVisTimeStepLength());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment