/** * Returns the ending x-value for an item within a series. * * @param series the series index (in the range {@code 0} to * {@code getSeriesCount() - 1}). * @param item the item index (in the range {@code 0} to * {@code getItemCount(series)}). * * @return The ending x-value. * * @throws ArrayIndexOutOfBoundsException if {@code series} is not * within the specified range. * @throws ArrayIndexOutOfBoundsException if {@code item} is not * within the specified range. * * @see #getEndXValue(int, int) */ @Override public Number getEndX(int series, int item) { return new Double(getEndXValue(series, item)); }
/** * Returns the ending y-value for an item within a series. * * @param series the series index (in the range {@code 0} to * {@code getSeriesCount() - 1}). * @param item the item index (in the range {@code 0} to * {@code getItemCount(series)}). * * @return The ending y-value. * * @throws ArrayIndexOutOfBoundsException if {@code series} is not * within the specified range. * @throws ArrayIndexOutOfBoundsException if {@code item} is not * within the specified range. * * @see #getEndYValue(int, int) */ @Override public Number getEndY(int series, int item) { return new Double(getEndYValue(series, item)); }
/** * Returns the starting x-value for an item within a series. * * @param series the series index (in the range {@code 0} to * {@code getSeriesCount() - 1}). * @param item the item index (in the range {@code 0} to * {@code getItemCount(series)}). * * @return The starting x-value. * * @throws ArrayIndexOutOfBoundsException if {@code series} is not * within the specified range. * @throws ArrayIndexOutOfBoundsException if {@code item} is not * within the specified range. * * @see #getStartXValue(int, int) */ @Override public Number getStartX(int series, int item) { return new Double(getStartXValue(series, item)); }
"The 'data' array must contain two arrays with equal length."); int seriesIndex = indexOf(seriesKey); if (seriesIndex == -1) { // add a new series this.seriesKeys.add(seriesKey); this.seriesList.add(seriesIndex, data); notifyListeners(new DatasetChangeEvent(this, this));
/** * Returns the key for a series. * * @param series the series index (in the range <code>0</code> to * <code>getSeriesCount() - 1</code>). * * @return The key for the series. * * @throws IllegalArgumentException if <code>series</code> is not in the * specified range. */ public Comparable getSeriesKey(int series) { if ((series < 0) || (series >= getSeriesCount())) { throw new IllegalArgumentException("Series index out of bounds"); } return (Comparable) this.seriesKeys.get(series); }
/** * Returns the y-value for an item within a series. * * @param series the series index (in the range {@code 0} to * {@code getSeriesCount() - 1}). * @param item the item index (in the range {@code 0} to * {@code getItemCount(series)}). * * @return The y-value. * * @throws ArrayIndexOutOfBoundsException if {@code series} is not * within the specified range. * @throws ArrayIndexOutOfBoundsException if {@code item} is not * within the specified range. * * @see #getYValue(int, int) */ @Override public Number getY(int series, int item) { return new Double(getYValue(series, item)); }
/** * Returns the x-value for an item within a series. * * @param series the series index (in the range {@code 0} to * {@code getSeriesCount() - 1}). * @param item the item index (in the range {@code 0} to * {@code getItemCount(series)}). * * @return The x-value. * * @throws ArrayIndexOutOfBoundsException if {@code series} is not * within the specified range. * @throws ArrayIndexOutOfBoundsException if {@code item} is not * within the specified range. * * @see #getXValue(int, int) */ @Override public Number getX(int series, int item) { return new Double(getXValue(series, item)); }
/** * Returns the starting y-value for an item within a series. * * @param series the series index (in the range <code>0</code> to * <code>getSeriesCount() - 1</code>). * @param item the item index (in the range <code>0</code> to * <code>getItemCount(series)</code>). * * @return The starting y-value. * * @throws ArrayIndexOutOfBoundsException if <code>series</code> is not * within the specified range. * @throws ArrayIndexOutOfBoundsException if <code>item</code> is not * within the specified range. * * @see #getStartYValue(int, int) */ public Number getStartY(int series, int item) { return new Double(getStartYValue(series, item)); }
"The 'data' array must contain six arrays with equal length."); int seriesIndex = indexOf(seriesKey); if (seriesIndex == -1) { // add a new series this.seriesKeys.add(seriesKey); this.seriesList.add(seriesIndex, data); notifyListeners(new DatasetChangeEvent(this, this));
/** * Returns the key for a series. * * @param series the series index (in the range {@code 0} to * {@code getSeriesCount() - 1}). * * @return The key for the series. * * @throws IllegalArgumentException if {@code series} is not in the * specified range. */ @Override public Comparable getSeriesKey(int series) { if ((series < 0) || (series >= getSeriesCount())) { throw new IllegalArgumentException("Series index out of bounds"); } return (Comparable) this.seriesKeys.get(series); }
/** * Returns the y-value for an item within a series. * * @param series the series index (in the range <code>0</code> to * <code>getSeriesCount() - 1</code>). * @param item the item index (in the range <code>0</code> to * <code>getItemCount(series)</code>). * * @return The y-value. * * @throws ArrayIndexOutOfBoundsException if <code>series</code> is not * within the specified range. * @throws ArrayIndexOutOfBoundsException if <code>item</code> is not * within the specified range. * * @see #getYValue(int, int) */ public Number getY(int series, int item) { return new Double(getYValue(series, item)); }
/** * Returns the x-value for an item within a series. * * @param series the series index (in the range <code>0</code> to * <code>getSeriesCount() - 1</code>). * @param item the item index (in the range <code>0</code> to * <code>getItemCount(series)</code>). * * @return The x-value. * * @throws ArrayIndexOutOfBoundsException if <code>series</code> is not * within the specified range. * @throws ArrayIndexOutOfBoundsException if <code>item</code> is not * within the specified range. * * @see #getXValue(int, int) */ public Number getX(int series, int item) { return new Double(getXValue(series, item)); }
/** * Returns the starting y-value for an item within a series. * * @param series the series index (in the range {@code 0} to * {@code getSeriesCount() - 1}). * @param item the item index (in the range {@code 0} to * {@code getItemCount(series)}). * * @return The starting y-value. * * @throws ArrayIndexOutOfBoundsException if {@code series} is not * within the specified range. * @throws ArrayIndexOutOfBoundsException if {@code item} is not * within the specified range. * * @see #getStartYValue(int, int) */ @Override public Number getStartY(int series, int item) { return new Double(getStartYValue(series, item)); }
/** * Returns the number of items in the specified series. * * @param series the series index (in the range {@code 0} to * {@code getSeriesCount() - 1}). * * @return The item count. * * @throws IllegalArgumentException if {@code series} is not in the * specified range. */ @Override public int getItemCount(int series) { if ((series < 0) || (series >= getSeriesCount())) { throw new IllegalArgumentException("Series index out of bounds"); } double[][] seriesArray = (double[][]) this.seriesList.get(series); return seriesArray[0].length; }
/** * Returns the ending x-value for an item within a series. * * @param series the series index (in the range <code>0</code> to * <code>getSeriesCount() - 1</code>). * @param item the item index (in the range <code>0</code> to * <code>getItemCount(series)</code>). * * @return The ending x-value. * * @throws ArrayIndexOutOfBoundsException if <code>series</code> is not * within the specified range. * @throws ArrayIndexOutOfBoundsException if <code>item</code> is not * within the specified range. * * @see #getEndXValue(int, int) */ public Number getEndX(int series, int item) { return new Double(getEndXValue(series, item)); }
/** * Returns the starting x-value for an item within a series. * * @param series the series index (in the range <code>0</code> to * <code>getSeriesCount() - 1</code>). * @param item the item index (in the range <code>0</code> to * <code>getItemCount(series)</code>). * * @return The starting x-value. * * @throws ArrayIndexOutOfBoundsException if <code>series</code> is not * within the specified range. * @throws ArrayIndexOutOfBoundsException if <code>item</code> is not * within the specified range. * * @see #getStartXValue(int, int) */ public Number getStartX(int series, int item) { return new Double(getStartXValue(series, item)); }
/** * Returns the ending y-value for an item within a series. * * @param series the series index (in the range <code>0</code> to * <code>getSeriesCount() - 1</code>). * @param item the item index (in the range <code>0</code> to * <code>getItemCount(series)</code>). * * @return The ending y-value. * * @throws ArrayIndexOutOfBoundsException if <code>series</code> is not * within the specified range. * @throws ArrayIndexOutOfBoundsException if <code>item</code> is not * within the specified range. * * @see #getEndYValue(int, int) */ public Number getEndY(int series, int item) { return new Double(getEndYValue(series, item)); }
/** * Returns the number of items in the specified series. * * @param series the series index (in the range <code>0</code> to * <code>getSeriesCount() - 1</code>). * * @return The item count. * * @throws IllegalArgumentException if <code>series</code> is not in the * specified range. */ public int getItemCount(int series) { if ((series < 0) || (series >= getSeriesCount())) { throw new IllegalArgumentException("Series index out of bounds"); } double[][] seriesArray = (double[][]) this.seriesList.get(series); return seriesArray[0].length; }