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

Method FFTFrame

src/org/opensourcephysics/frames/FFTFrame.java:56–66  ·  view source on GitHub ↗

A DrawingFrame that displays a FFT as its drawable. @param xlabel String @param ylabel String @param title String

(String xlabel, String ylabel, String title)

Source from the content-addressed store, hash-verified

54 * @param title String
55 */
56 public FFTFrame(String xlabel, String ylabel, String title) {
57 super(new PlottingPanel(xlabel, ylabel, null));
58 complexDataset.setMarkerShape(ComplexDataset.PHASE_POST);
59 complexDataset.setXYColumnNames(xlabel, "re", "im"); //$NON-NLS-1$ //$NON-NLS-2$
60 drawingPanel.addDrawable(complexDataset);
61 setTitle(title);
62 dataTable.add(complexDataset.model);
63 addMenuItems();
64 setAnimated(true);
65 setAutoclear(true);
66 }
67
68 /**
69 * Adds Views menu items on the menu bar.

Callers

nothing calls this directly

Calls 8

addMenuItemsMethod · 0.95
setAnimatedMethod · 0.80
setAutoclearMethod · 0.80
setTitleMethod · 0.65
setMarkerShapeMethod · 0.45
setXYColumnNamesMethod · 0.45
addDrawableMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected