private Range getRange(final XYSeriesCollection seriesCol) { if (this.boundingBox == null) return seriesCol.getRangeBounds(false); else return new Range(boundingBox.minY, boundingBox.maxY); }
private Range getRange(final XYSeriesCollection seriesCol) { if (this.boundingBox == null) return seriesCol.getRangeBounds(false); else return new Range(boundingBox.minY, boundingBox.maxY); }
private void updateChart(JFreeChart chart, List<DisplayableSpectrum> spectra) { final XYPlot plot = chart.getXYPlot(); if (!chartHandler.isAutomaticDomainAdjustmentSet() && !domainAxisAdjustmentIsFrozen) { isCodeInducedAxisChange = true; updatePlotBounds(dataset.getDomainBounds(true), plot.getDomainAxis(), domain_axis_index); isCodeInducedAxisChange = false; } if (!chartHandler.isAutomaticRangeAdjustmentSet() && !rangeAxisAdjustmentIsFrozen) { isCodeInducedAxisChange = true; updatePlotBounds(dataset.getRangeBounds(true), plot.getRangeAxis(), range_axis_index); isCodeInducedAxisChange = false; } plot.setDataset(dataset); setPlotUnit(spectra, plot); }
private void updateChart(JFreeChart chart, List<DisplayableSpectrum> spectra) { final XYPlot plot = chart.getXYPlot(); if (!chartHandler.isAutomaticDomainAdjustmentSet() && !domainAxisAdjustmentIsFrozen) { isCodeInducedAxisChange = true; updatePlotBounds(dataset.getDomainBounds(true), plot.getDomainAxis(), domain_axis_index); isCodeInducedAxisChange = false; } if (!chartHandler.isAutomaticRangeAdjustmentSet() && !rangeAxisAdjustmentIsFrozen) { isCodeInducedAxisChange = true; updatePlotBounds(dataset.getRangeBounds(true), plot.getRangeAxis(), range_axis_index); isCodeInducedAxisChange = false; } plot.setDataset(dataset); setPlotUnit(spectra, plot); }