Package net.sf.mzmine.modules.visualization.spectra.renderers

Examples of net.sf.mzmine.modules.visualization.spectra.renderers.PeakRenderer


    if (!(dataSet instanceof ScanDataSet))
      return;

    XYItemRenderer newRenderer;
    if (plotMode == PlotMode.CENTROID) {
      newRenderer = new PeakRenderer(SpectraVisualizerWindow.scanColor,
          false);
    } else {
      newRenderer = new ContinuousRenderer(
          SpectraVisualizerWindow.scanColor, false);
      ((ContinuousRenderer) newRenderer)
View Full Code Here


    if (dataSet instanceof ScanDataSet) {
      ScanDataSet scanDataSet = (ScanDataSet) dataSet;
      Scan scan = scanDataSet.getScan();
      if (scan.isCentroided())
        newRenderer = new PeakRenderer(color, transparency);
      else {
        newRenderer = new ContinuousRenderer(color, transparency);
        ((ContinuousRenderer) newRenderer)
            .setBaseShapesVisible(dataPointsVisible);
      }

      // Add label generator for the dataset
      SpectraItemLabelGenerator labelGenerator = new SpectraItemLabelGenerator(
          this);
      newRenderer.setBaseItemLabelGenerator(labelGenerator);
      newRenderer.setBaseItemLabelsVisible(itemLabelsVisible);
      newRenderer.setBaseItemLabelPaint(labelsColor);

    } else {
      newRenderer = new PeakRenderer(color, transparency);
    }

    plot.setDataset(numOfDataSets, dataSet);
    plot.setRenderer(numOfDataSets, newRenderer);
    numOfDataSets++;
View Full Code Here

TOP

Related Classes of net.sf.mzmine.modules.visualization.spectra.renderers.PeakRenderer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.