Resets the animation into a predefined state.
()
| 107 | * Resets the animation into a predefined state. |
| 108 | */ |
| 109 | @Override |
| 110 | public void reset() { |
| 111 | // set the parameters |
| 112 | control.setValue("M", 1); |
| 113 | control.setValue("dt", 0.1); |
| 114 | control.setValue("editable inspector", true); |
| 115 | control.setValue("autoscale", false); |
| 116 | control.setValue("scale min max", scale.getDefault()); |
| 117 | control.setValue("maximum time", 1.0e4); |
| 118 | enableStepsPerDisplay(true); |
| 119 | initialize(); |
| 120 | } |
| 121 | |
| 122 | /** |
| 123 | * Initializes the animation; |
nothing calls this directly
no test coverage detected