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);
}
}
Aggregations