Class MassErrorPlot

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class MassErrorPlot
extends JPanel
Creates a MassErrorPlot displaying the mz values vs the mass error.
Author:
Harald Barsnes, Marc Vaudel
See Also:
Serialized Form
  • Constructor Details

    • MassErrorPlot

      public MassErrorPlot()
      Empty default constructor
    • MassErrorPlot

      public MassErrorPlot​(IonMatch[] annotations, Spectrum currentSpectrum, double massTolerance) throws InterruptedException
      Creates a new MassErrorPlot.
      Parameters:
      annotations - the full list of spectrum annotations
      currentSpectrum - the current spectrum
      massTolerance - the mass error tolerance
      Throws:
      InterruptedException - exception thrown if the thread is interrupted
    • MassErrorPlot

      public MassErrorPlot​(IonMatch[] annotations, Spectrum currentSpectrum, double massTolerance, boolean useRelativeError)
      Creates a new MassErrorPlot.
      Parameters:
      annotations - the full list of spectrum annotations
      currentSpectrum - the current spectrum
      massTolerance - the mass error tolerance
      useRelativeError - if true the relative error (ppm) is used instead of the absolute error (Da)
  • Method Details

    • getNumberOfDataPointsInPlot

      public int getNumberOfDataPointsInPlot()
      Returns the current number of data points in the mass error plot.
      Returns:
      the current number of data points
    • getChartPanel

      public org.jfree.chart.ChartPanel getChartPanel()
      Returns the chart panel.
      Returns:
      the chart panel