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

Method Demo3D_4App

src/csm/ch03/Demo3D_4App.java:30–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 Group group = new Group();
29
30 public Demo3D_4App() {
31 frame.setPreferredMinMax(-10.0, 10.0, -10.0, 10.0, -10.0, 10.0);
32 Element nucleus = new ElementCircle();
33 nucleus.setXYZ(0.0, 0.0, 0.0);
34 nucleus.setSizeXYZ(3.0, 3.0, 3.0);
35 group.addElement(nucleus);
36 frame.addElement(group);
37 ElementText caption = new ElementText();
38 caption.setText("OSP 3D Simulation");
39 caption.setXYZ(0.0, 0.0, -10.0);
40 frame.addElement(caption);
41 createElectrons();
42 }
43
44 @Override
45public void doStep() {

Callers

nothing calls this directly

Calls 6

setTextMethod · 0.95
createElectronsMethod · 0.95
setPreferredMinMaxMethod · 0.65
setXYZMethod · 0.65
setSizeXYZMethod · 0.65
addElementMethod · 0.65

Tested by

no test coverage detected