Resets the program to its initial state.
()
| 49 | * Resets the program to its initial state. |
| 50 | */ |
| 51 | public void reset() { |
| 52 | frame.clearDrawables(); // removes drawables added by the user |
| 53 | control.setValue("xleft", 0); // sets default input values |
| 54 | control.setValue("ytop", 70); |
| 55 | control.setValue("width", 100); |
| 56 | control.setValue("height", 150); |
| 57 | frame.setMessage("t="+ControlUtils.f2(time)); |
| 58 | calculate() ; |
| 59 | frame.append(0, time, time); // trajectory data added |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * Starts the Java application. |
nothing calls this directly
no test coverage detected