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

Method reset

src/csm/ch03/DrawingApp.java:48–55  ·  view source on GitHub ↗

Resets the program to its initial state.

()

Source from the content-addressed store, hash-verified

46 * Resets the program to its initial state.
47 */
48 @Override
49public void reset() {
50 frame.clearDrawables(); // removes drawables added by the user
51 control.setValue("xleft", 60); // sets default input values
52 control.setValue("ytop", 70);
53 control.setValue("width", 100);
54 control.setValue("height", 150);
55 }
56
57 /**
58 * Starts the Java application.

Callers

nothing calls this directly

Calls 2

setValueMethod · 0.65
clearDrawablesMethod · 0.45

Tested by

no test coverage detected