Search in sources :

Example 6 with IsotopesDataSet

use of net.sf.mzmine.modules.visualization.spectra.simplespectra.datasets.IsotopesDataSet in project mzmine2 by mzmine.

the class SpectraPlot method switchIsotopePeaksVisible.

void switchIsotopePeaksVisible() {
    isotopesVisible = !isotopesVisible;
    for (int i = 0; i < plot.getDatasetCount(); i++) {
        XYDataset dataSet = plot.getDataset(i);
        if (!(dataSet instanceof IsotopesDataSet))
            continue;
        XYItemRenderer renderer = plot.getRenderer(i);
        renderer.setDefaultSeriesVisible(isotopesVisible);
    }
}
Also used : XYDataset(org.jfree.data.xy.XYDataset) IsotopesDataSet(net.sf.mzmine.modules.visualization.spectra.simplespectra.datasets.IsotopesDataSet) XYItemRenderer(org.jfree.chart.renderer.xy.XYItemRenderer)

Aggregations

IsotopesDataSet (net.sf.mzmine.modules.visualization.spectra.simplespectra.datasets.IsotopesDataSet)6 Color (java.awt.Color)3 IsotopePattern (net.sf.mzmine.datamodel.IsotopePattern)3 DataPoint (net.sf.mzmine.datamodel.DataPoint)2 ProcessedDataPoint (net.sf.mzmine.modules.visualization.spectra.simplespectra.datapointprocessing.datamodel.ProcessedDataPoint)2 ArrayList (java.util.ArrayList)1 Feature (net.sf.mzmine.datamodel.Feature)1 PeakList (net.sf.mzmine.datamodel.PeakList)1 PeakListRow (net.sf.mzmine.datamodel.PeakListRow)1 SimpleIsotopePattern (net.sf.mzmine.datamodel.impl.SimpleIsotopePattern)1 ExtendedIsotopePatternDataSet (net.sf.mzmine.modules.visualization.spectra.simplespectra.datasets.ExtendedIsotopePatternDataSet)1 PeakListDataSet (net.sf.mzmine.modules.visualization.spectra.simplespectra.datasets.PeakListDataSet)1 ScanDataSet (net.sf.mzmine.modules.visualization.spectra.simplespectra.datasets.ScanDataSet)1 XYItemRenderer (org.jfree.chart.renderer.xy.XYItemRenderer)1 XYDataset (org.jfree.data.xy.XYDataset)1