button.setToolTipText("Reset the time step to its default value (" +
UnitGroup.UNITS_SHORT_TIME.toStringUnit(RK4Simulator.RECOMMENDED_TIME_STEP) +
").");
+ button.addActionListener(new ActionListener() {
+ @Override
+ public void actionPerformed(ActionEvent e) {
+ conditions.setTimeStep(RK4Simulator.RECOMMENDED_TIME_STEP);
+ }
+ });
// button.setToolTipText("<html>Reset the step value to its default:<br>" +
// "Time step " +
return noDataPanel();
}
-
- if (true)
- return new SimulationPlotPanel(simulation);
-
- JPanel panel = new JPanel(new MigLayout("fill"));
-
-
-
-
- JButton button = new JButton("test");
-
- button.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- PlotConfiguration config = new PlotConfiguration();
- config.addPlotDataType(FlightDataBranch.TYPE_ALTITUDE);
- config.addPlotDataType(FlightDataBranch.TYPE_VELOCITY_Z);
- config.addPlotDataType(FlightDataBranch.TYPE_ACCELERATION_Z);
- config.addPlotDataType(FlightDataBranch.TYPE_ACCELERATION_TOTAL);
-
- config.setDomainAxisType(FlightDataBranch.TYPE_TIME);
-
- performPlot(config);
- }
- });
- panel.add(button);
-
- return panel;
+ return new SimulationPlotPanel(simulation);
}