int endDate = allocation.getEndDate(); YIntervalSeries projectSeries = projectSeriesMap.get(allocation.getProject()); projectSeries.add(allocation.getId(), (startDate + endDate) / 2.0, startDate, endDate); maximumEndDate = Math.max(maximumEndDate, endDate);
/** * Adds a data item to the series and sends a {@link SeriesChangeEvent} to * all registered listeners. * * @param x the x-value. * @param y the y-value. * @param yLow the lower bound of the y-interval. * @param yHigh the upper bound of the y-interval. */ public void add(double x, double y, double yLow, double yHigh) { add(new YIntervalDataItem(x, y, yLow, yHigh), true); }
/** * Adds a data item to the series. * * @param x * the x-value. * @param y * the y-value. * @param yLow * the lower bound of the y-interval. * @param yHigh * the upper bound of the y-interval. * @param notify * a flag that controls whether or not a * {@link org.jfree.data.general.SeriesChangeEvent} is sent to all registered * listeners. */ public void add(double x, double y, double yLow, double yHigh, boolean notify) { super.add(new YIntervalDataItem(x, y, yLow, yHigh), notify); }
dt.datasets.csrAvgSeries.add(i, ci[0], ci[1], ci[2]); dt.datasets.cerAvgSeries.add(i, ci[0], ci[1], ci[2]); dt.datasets.aerAvgSeries.add(i, ci[0], ci[1], ci[2]); dt.datasets.merAvgSeries.add(i, ci[0], ci[1], ci[2]); dt.datasets.cseAvgSeries.add(i, ci[0], ci[1], ci[2]); dt.datasets.seAvgSeries.add(i, ci[0], ci[1], ci[2]);
curAgentDatasets.csrAvgSeries.add(i, ci[0], ci[1], ci[2]); curAgentDatasets.cerAvgSeries.add(i, ci[0], ci[1], ci[2]); curAgentDatasets.aerAvgSeries.add(i, ci[0], ci[1], ci[2]); curAgentDatasets.merAvgSeries.add(i, ci[0], ci[1], ci[2]); curAgentDatasets.cseAvgSeries.add(i, ci[0], ci[1], ci[2]); curAgentDatasets.seAvgSeries.add(i, ci[0], ci[1], ci[2]);
int endDate = allocation.getEndDate(); YIntervalSeries projectSeries = projectSeriesMap.get(allocation.getProject()); projectSeries.add(allocation.getId(), (startDate + endDate) / 2.0, startDate, endDate); maximumEndDate = Math.max(maximumEndDate, endDate);