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

Method edit

src/davidson/gr/ShellParticle.java:103–116  ·  view source on GitHub ↗

Displays the shell particle's initial conditions in an editor. @return OSPControl

()

Source from the content-addressed store, hash-verified

101 * @return OSPControl
102 */
103 @Override
104 public OSPTableInspector edit() {
105 OSPTableInspector inspector = new OSPTableInspector(true, true);
106 Control control = inspector.getControl();
107 inspector.setTitle("Shell Particle");
108 inspector.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
109 control.setValue("r", 5.0);
110 control.setValue(PHI, Math.PI / 2);
111 control.setValue("show tau", false);
112 control.setValue("draggable state", false);
113 control.setValue("label", "");
114 inspector.setSize(160, 170);
115 return inspector;
116 }
117
118 /**
119 * Calculates the rate array using the given state.

Callers 1

createMarkerMethod · 0.95

Calls 5

getControlMethod · 0.95
setValueMethod · 0.95
setTitleMethod · 0.65
setSizeMethod · 0.65

Tested by

no test coverage detected