/** * Returns the number of data items for a series. * * @param series the series index (in the range <code>0</code> to * <code>getSeriesCount() - 1</code>). * * @return The item count. * * @throws IndexOutOfBoundsException if <code>series</code> is outside the * specified range. */ public int getItemCount(int series) { return getBins(series).size(); }
/** * Returns the number of data items for a series. * * @param series the series index (in the range {@code 0} to * {@code getSeriesCount() - 1}). * * @return The item count. * * @throws IndexOutOfBoundsException if {@code series} is outside the * specified range. */ @Override public int getItemCount(int series) { return getBins(series).size(); }
/** * Returns the start value for a bin. * * @param series the series index (in the range <code>0</code> to * <code>getSeriesCount() - 1</code>). * @param item the item index (zero based). * * @return The start value. * * @throws IndexOutOfBoundsException if <code>series</code> is outside the * specified range. */ public Number getStartX(int series, int item) { List bins = getBins(series); HistogramBin bin = (HistogramBin) bins.get(item); return new Double(bin.getStartBoundary()); }
/** * Returns the start value for a bin. * * @param series the series index (in the range {@code 0} to * {@code getSeriesCount() - 1}). * @param item the item index (zero based). * * @return The start value. * * @throws IndexOutOfBoundsException if {@code series} is outside the * specified range. */ @Override public Number getStartX(int series, int item) { List bins = getBins(series); HistogramBin bin = (HistogramBin) bins.get(item); return new Double(bin.getStartBoundary()); }
/** * Returns the end value for a bin. * * @param series the series index (in the range <code>0</code> to * <code>getSeriesCount() - 1</code>). * @param item the item index (zero based). * * @return The end value. * * @throws IndexOutOfBoundsException if <code>series</code> is outside the * specified range. */ public Number getEndX(int series, int item) { List bins = getBins(series); HistogramBin bin = (HistogramBin) bins.get(item); return new Double(bin.getEndBoundary()); }
/** * Returns the end value for a bin. * * @param series the series index (in the range {@code 0} to * {@code getSeriesCount() - 1}). * @param item the item index (zero based). * * @return The end value. * * @throws IndexOutOfBoundsException if {@code series} is outside the * specified range. */ @Override public Number getEndX(int series, int item) { List bins = getBins(series); HistogramBin bin = (HistogramBin) bins.get(item); return new Double(bin.getEndBoundary()); }
/** * Returns the X value for a bin. This value won't be used for plotting * histograms, since the renderer will ignore it. But other renderers can * use it (for example, you could use the dataset to create a line * chart). * * @param series the series index (in the range {@code 0} to * {@code getSeriesCount() - 1}). * @param item the item index (zero based). * * @return The start value. * * @throws IndexOutOfBoundsException if {@code series} is outside the * specified range. */ @Override public Number getX(int series, int item) { List bins = getBins(series); HistogramBin bin = (HistogramBin) bins.get(item); double x = (bin.getStartBoundary() + bin.getEndBoundary()) / 2.; return new Double(x); }
/** * Returns the X value for a bin. This value won't be used for plotting * histograms, since the renderer will ignore it. But other renderers can * use it (for example, you could use the dataset to create a line * chart). * * @param series the series index (in the range <code>0</code> to * <code>getSeriesCount() - 1</code>). * @param item the item index (zero based). * * @return The start value. * * @throws IndexOutOfBoundsException if <code>series</code> is outside the * specified range. */ public Number getX(int series, int item) { List bins = getBins(series); HistogramBin bin = (HistogramBin) bins.get(item); double x = (bin.getStartBoundary() + bin.getEndBoundary()) / 2.; return new Double(x); }
List bins = getBins(series); HistogramBin bin = (HistogramBin) bins.get(item); double total = getTotal(series);
List bins = getBins(series); HistogramBin bin = (HistogramBin) bins.get(item); double total = getTotal(series);