Class SpectrumLayer

java.lang.Object
be.tarsos.dsp.ui.layers.SpectrumLayer
All Implemented Interfaces:
Layer

public class SpectrumLayer
extends java.lang.Object
implements Layer
  • Constructor Summary

    Constructors 
    Constructor Description
    SpectrumLayer​(CoordinateSystem cs, int fftSize, int sampleRate, java.awt.Color color)  
  • Method Summary

    Modifier and Type Method Description
    void clearPeaks()  
    void draw​(java.awt.Graphics2D graphics)  
    java.lang.String getName()  
    void setFFTSize​(int fftSize)  
    void setPeak​(int binIndex)  
    void setSampleRate​(int sampleRate)  
    void setSpectrum​(float[] spectrum)  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • draw

      public void draw​(java.awt.Graphics2D graphics)
      Specified by:
      draw in interface Layer
    • getName

      public java.lang.String getName()
      Specified by:
      getName in interface Layer
    • setSpectrum

      public void setSpectrum​(float[] spectrum)
    • setPeak

      public void setPeak​(int binIndex)
    • clearPeaks

      public void clearPeaks()
    • setSampleRate

      public void setSampleRate​(int sampleRate)
    • setFFTSize

      public void setFFTSize​(int fftSize)