protected void initialise(double[] aSignal, int aSamplingRate, Window aWindow, int aWindowShift, int aFftSize, int width, int height) { this.signal = aSignal; this.samplingRate = aSamplingRate; this.window = aWindow; this.windowShift = aWindowShift; this.fftSize = aFftSize; super.initialise(width, height, 0, (double) aWindowShift / aSamplingRate, new double[10]); update(); initialiseDependentWindows(); }
public void actionPerformed(ActionEvent evt) { changeZoomX(2); signalGraph.requestFocus(); } });
protected void initialise(double[] aSignal, int aSamplingRate, Window aWindow, int aWindowShift, int aFftSize, int width, int height) { this.signal = aSignal; this.samplingRate = aSamplingRate; this.window = aWindow; this.windowShift = aWindowShift; this.fftSize = aFftSize; super.initialise(width, height, 0, (double) aWindowShift / aSamplingRate, new double[10]); update(); }
protected static JFrame showGraph(double[] array, String title) { FunctionGraph graph = new FunctionGraph(400, 200, 0, 1, array); JFrame frame = graph.showInJFrame(title, 500, 300, true, false); return frame; } }
public void actionPerformed(ActionEvent evt) { setZoomX(getZoomX() * 0.5); FunctionGraph.this.requestFocus(); } });
protected void update(double[] signal, int samplingRate) { super.updateData(0, 1. / samplingRate, signal); updateSound(signal, samplingRate); }
public CursorDisplayer.CursorLine getRangeCursor() { if (Double.isNaN(rangeCursor.x)) return null; int imageX = X2imageX(rangeCursor.x); return new CursorDisplayer.CursorLine(this, paddingLeft + X2imageX(rangeCursor.x), paddingTop, getHeight() - paddingBottom, Color.YELLOW); }
public CursorDisplayer.Label getValueLabel() { if (Double.isNaN(positionCursor.x)) return null; int imageX = X2imageX(positionCursor.x) + 10; int imageY = paddingTop + 10; return new CursorDisplayer.Label(this, getLabel(positionCursor.x, positionCursor.y), imageX, imageY); }
protected void initialise(final double[] signal, int samplingRate, int width, int height) { super.initialise(width, height, 0, 1. / samplingRate, signal); updateSound(signal, samplingRate); }
public JPanel getControls() { if (controls == null) { controls = createControls(); } return controls; }
public void actionPerformed(ActionEvent evt) { setZoomX(getZoomX() * 2); FunctionGraph.this.requestFocus(); } });
protected void update(double[] signal, int samplingRate) { super.updateData(0, 1. / samplingRate, signal); updateSound(signal, samplingRate); }
protected void initialise(double[] aSignal, int aSamplingRate, Window aWindow, int aWindowShift, int aFftSize, int width, int height) { this.signal = aSignal; this.samplingRate = aSamplingRate; this.window = aWindow; this.windowShift = aWindowShift; this.fftSize = aFftSize; super.initialise(width, height, 0, (double) aWindowShift / aSamplingRate, new double[10]); update(); initialiseDependentWindows(); }
public void actionPerformed(ActionEvent evt) { changeZoomX(2); signalGraph.requestFocus(); } });
protected void initialise(double[] aSignal, int aSamplingRate, Window aWindow, int aWindowShift, int aFftSize, int width, int height) { this.signal = aSignal; this.samplingRate = aSamplingRate; this.window = aWindow; this.windowShift = aWindowShift; this.fftSize = aFftSize; super.initialise(width, height, 0, (double) aWindowShift / aSamplingRate, new double[10]); update(); }
protected void initialise(final double[] signal, int samplingRate, int width, int height) { super.initialise(width, height, 0, 1. / samplingRate, signal); updateSound(signal, samplingRate); }
public void actionPerformed(ActionEvent evt) { setZoomX(getZoomX() * 0.5); FunctionGraph.this.requestFocus(); } });
public void actionPerformed(ActionEvent evt) { changeZoomX(0.5); signalGraph.requestFocus(); } });
public void actionPerformed(ActionEvent evt) { changeZoomX(0.5); signalGraph.requestFocus(); } });