MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / reset

Method reset

unused/debugging/SetClipBug.java:51–60  ·  view source on GitHub ↗

Resets the program to its initial state.

()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 6

f2Method · 0.95
calculateMethod · 0.95
setValueMethod · 0.65
appendMethod · 0.65
clearDrawablesMethod · 0.45
setMessageMethod · 0.45

Tested by

no test coverage detected