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:
  • Constructor Details

    • MassErrorPlot

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

      public MassErrorPlot(IonMatch[] annotations, Spectrum currentSpectrum, double massTolerance, boolean useRelativeError, boolean lowResolution)
      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)
      lowResolution - low or high resolution chart
  • 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