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

Method PlotFrame

src/org/opensourcephysics/frames/PlotFrame.java:64–72  ·  view source on GitHub ↗

Constructs the PlottingFrame with the given frame title and axes labels. @param xlabel String @param ylabel String @param frameTitle String

(String xlabel, String ylabel, String frameTitle)

Source from the content-addressed store, hash-verified

62 * @param frameTitle String
63 */
64 public PlotFrame(String xlabel, String ylabel, String frameTitle) {
65 super(new PlottingPanel(xlabel, ylabel, null));
66 setTitle(frameTitle);
67 drawingPanel.addDrawable(datasetManager);
68 datasetManager.setXPointsLinked(true);
69 setAnimated(true);
70 setAutoclear(true);
71 addMenuItems();
72 }
73
74 /**
75 * Sets the name of this component and the Dataset Manager.

Callers

nothing calls this directly

Calls 6

addMenuItemsMethod · 0.95
setAnimatedMethod · 0.80
setAutoclearMethod · 0.80
setTitleMethod · 0.65
addDrawableMethod · 0.45
setXPointsLinkedMethod · 0.45

Tested by

no test coverage detected