gpt4 book ai didi

org.jfree.data.xy.XYIntervalSeriesCollection.removeAllSeries()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 12:53:05 27 4
gpt4 key购买 nike

本文整理了Java中org.jfree.data.xy.XYIntervalSeriesCollection.removeAllSeries()方法的一些代码示例,展示了XYIntervalSeriesCollection.removeAllSeries()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XYIntervalSeriesCollection.removeAllSeries()方法的具体详情如下:
包路径:org.jfree.data.xy.XYIntervalSeriesCollection
类名称:XYIntervalSeriesCollection
方法名:removeAllSeries

XYIntervalSeriesCollection.removeAllSeries介绍

[英]Removes all the series from the collection and sends a DatasetChangeEvent to all registered listeners.
[中]

代码示例

代码示例来源:origin: bcdev/beam

private void computeRegressionAndAcceptableDeviationData() {
  acceptableDeviationDataset.removeAllSeries();
  regressionDataset.removeAllSeries();
  getPlot().removeAnnotation(r2Annotation);
  if (computedDatas != null) {
    final ValueAxis domainAxis = getPlot().getDomainAxis();
    final double min = domainAxis.getLowerBound();
    final double max = domainAxis.getUpperBound();
    acceptableDeviationDataset.addSeries(computeAcceptableDeviationData(min, max));
    if (scatterPlotModel.showRegressionLine) {
      regressionDataset.addSeries(computeRegressionData(min, max));
      computeCoefficientOfDetermination();
    }
  }
}

代码示例来源:origin: senbox-org/snap-desktop

private void finishScalingUpdate(AxisRangeControl axisRangeControl, ValueAxis newAxis, ValueAxis oldAxis) {
  if (axisRangeControl.isAutoMinMax()) {
    newAxis.setAutoRange(false);
    acceptableDeviationDataset.removeAllSeries();
    regressionDataset.removeAllSeries();
    getPlot().removeAnnotation(r2Annotation);
    newAxis.setAutoRange(true);
    axisRangeControl.adjustComponents(newAxis, 3);
    newAxis.setAutoRange(false);
    computeRegressionAndAcceptableDeviationData();
  } else {
    newAxis.setAutoRange(false);
    newAxis.setRange(oldAxis.getRange());
  }
}

代码示例来源:origin: bcdev/beam

private void finishScalingUpdate(AxisRangeControl axisRangeControl, ValueAxis newAxis, ValueAxis oldAxis) {
  if (axisRangeControl.isAutoMinMax()) {
    newAxis.setAutoRange(false);
    acceptableDeviationDataset.removeAllSeries();
    regressionDataset.removeAllSeries();
    getPlot().removeAnnotation(r2Annotation);
    newAxis.setAutoRange(true);
    axisRangeControl.adjustComponents(newAxis, 3);
    newAxis.setAutoRange(false);
    computeRegressionAndAcceptableDeviationData();
  } else {
    newAxis.setAutoRange(false);
    newAxis.setRange(oldAxis.getRange());
  }
}

代码示例来源:origin: senbox-org/snap-desktop

private void computeRegressionAndAcceptableDeviationData() {
  acceptableDeviationDataset.removeAllSeries();
  regressionDataset.removeAllSeries();
  getPlot().removeAnnotation(r2Annotation);
  if (computedDatas != null) {
    final ValueAxis domainAxis = getPlot().getDomainAxis();
    final double min = domainAxis.getLowerBound();
    final double max = domainAxis.getUpperBound();
    acceptableDeviationDataset.addSeries(computeAcceptableDeviationData(min, max));
    if (scatterPlotModel.showRegressionLine) {
      final XYIntervalSeries series = computeRegressionData(min, max);
      if (series != null) {
        regressionDataset.addSeries(series);
        computeCoefficientOfDetermination();
      }
    }
  }
}

代码示例来源:origin: senbox-org/snap-desktop

private void computeChartDataIfPossible() {
  // need to do this later: all GUI events must be processed first in order to get the correct state
  SwingUtilities.invokeLater(() -> {
    if (scatterPlotModel.pointDataSource != null
        && scatterPlotModel.dataField != null
        && scatterPlotModel.pointDataSource.getFeatureCollection() != null
        && scatterPlotModel.pointDataSource.getFeatureCollection().features() != null
        && scatterPlotModel.pointDataSource.getFeatureCollection().features().hasNext()
        && scatterPlotModel.pointDataSource.getFeatureCollection().features().next() != null
        && scatterPlotModel.pointDataSource.getFeatureCollection().features().next().getAttribute(
        scatterPlotModel.dataField.getLocalName()) != null
        && getRaster() != null) {
      compute(scatterPlotModel.useRoiMask ? scatterPlotModel.roiMask : null);
    } else {
      scatterpointsDataset.removeAllSeries();
      acceptableDeviationDataset.removeAllSeries();
      regressionDataset.removeAllSeries();
      getPlot().removeAnnotation(r2Annotation);
      computedDatas = null;
    }
  });
}

代码示例来源:origin: bcdev/beam

@Override
  public void run() {
    if (scatterPlotModel.pointDataSource != null
      && scatterPlotModel.dataField != null
      && scatterPlotModel.pointDataSource.getFeatureCollection() != null
      && scatterPlotModel.pointDataSource.getFeatureCollection().features() != null
      && scatterPlotModel.pointDataSource.getFeatureCollection().features().hasNext()
      && scatterPlotModel.pointDataSource.getFeatureCollection().features().next() != null
      && scatterPlotModel.pointDataSource.getFeatureCollection().features().next().getAttribute(
        scatterPlotModel.dataField.getLocalName()) != null
      && getRaster() != null) {
      compute(scatterPlotModel.useRoiMask ? scatterPlotModel.roiMask : null);
    } else {
      scatterpointsDataset.removeAllSeries();
      acceptableDeviationDataset.removeAllSeries();
      regressionDataset.removeAllSeries();
      getPlot().removeAnnotation(r2Annotation);
      computedDatas = null;
    }
  }
});

代码示例来源:origin: bcdev/beam

yAxis.setAutoRange(false);
scatterpointsDataset.removeAllSeries();
acceptableDeviationDataset.removeAllSeries();
regressionDataset.removeAllSeries();
getPlot().removeAnnotation(r2Annotation);
computedDatas = null;

代码示例来源:origin: senbox-org/snap-desktop

yAxis.setAutoRange(false);
scatterpointsDataset.removeAllSeries();
acceptableDeviationDataset.removeAllSeries();
regressionDataset.removeAllSeries();
getPlot().removeAnnotation(r2Annotation);
computedDatas = null;

代码示例来源:origin: bcdev/beam

dataset.removeAllSeries();

代码示例来源:origin: senbox-org/snap-desktop

dataset.removeAllSeries();

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com