Java Code Examples for org.jfree.chart.renderer.xy.XYItemRenderer#setDefaultSeriesVisible()

The following examples show how to use org.jfree.chart.renderer.xy.XYItemRenderer#setDefaultSeriesVisible() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SpectraPlot.java    From mzmine3 with GNU General Public License v2.0 5 votes vote down vote up
void switchPickedPeaksVisible() {
  peaksVisible = !peaksVisible;
  for (int i = 0; i < plot.getDatasetCount(); i++) {
    XYDataset dataSet = plot.getDataset(i);
    if (!(dataSet instanceof PeakListDataSet))
      continue;
    XYItemRenderer renderer = plot.getRenderer(i);
    renderer.setDefaultSeriesVisible(peaksVisible);
  }
}
 
Example 2
Source File: SpectraPlot.java    From mzmine3 with GNU General Public License v2.0 5 votes vote down vote up
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);
  }
}
 
Example 3
Source File: SpectraPlot.java    From mzmine2 with GNU General Public License v2.0 5 votes vote down vote up
void switchPickedPeaksVisible() {
  peaksVisible = !peaksVisible;
  for (int i = 0; i < plot.getDatasetCount(); i++) {
    XYDataset dataSet = plot.getDataset(i);
    if (!(dataSet instanceof PeakListDataSet))
      continue;
    XYItemRenderer renderer = plot.getRenderer(i);
    renderer.setDefaultSeriesVisible(peaksVisible);
  }
}
 
Example 4
Source File: SpectraPlot.java    From mzmine2 with GNU General Public License v2.0 5 votes vote down vote up
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);
  }
}