/** * Returns the close-value (as a double primitive) for an item within a * series. * * @param series the series (zero-based index). * @param item the item (zero-based index). * * @return The close-value. */ public double getCloseValue(int series, int item) { double result = Double.NaN; Number close = getClose(series, item); if (close != null) { result = close.doubleValue(); } return result; }
/** * Returns the high-value (as a double primitive) for an item within a * series. * * @param series the series (zero-based index). * @param item the item (zero-based index). * * @return The high-value. */ public double getHighValue(int series, int item) { double result = Double.NaN; Number high = getHigh(series, item); if (high != null) { result = high.doubleValue(); } return result; }
/** * Returns the low-value (as a double primitive) for an item within a * series. * * @param series the series (zero-based index). * @param item the item (zero-based index). * * @return The low-value. */ public double getLowValue(int series, int item) { double result = Double.NaN; Number low = getLow(series, item); if (low != null) { result = low.doubleValue(); } return result; }
/** * Returns the ending Y value for the specified series and item. * * @param series the index of the series of interest (zero-based). * @param item the index of the item of interest (zero-based). * * @return The ending Y value for the specified series and item. */ public Number getEndY(int series, int item) { if (this.parent instanceof IntervalXYDataset) { return ((IntervalXYDataset) this.parent).getEndY( this.map[series], item ); } else { return getY(series, item); } }
/** * Returns the starting X value for the specified series and item. * * @param series the index of the series of interest (zero-based). * @param item the index of the item of interest (zero-based). * * @return The starting X value for the specified series and item. */ public Number getStartX(int series, int item) { if (this.parent instanceof IntervalXYDataset) { return ((IntervalXYDataset) this.parent).getStartX( this.map[series], item ); } else { return getX(series, item); } }
/** * Returns the open-value (as a double primitive) for an item within a * series. * * @param series the series (zero-based index). * @param item the item (zero-based index). * * @return The open-value. */ public double getOpenValue(int series, int item) { double result = Double.NaN; Number open = getOpen(series, item); if (open != null) { result = open.doubleValue(); } return result; }
/** * Returns the volume-value (as a double primitive) for an item within a * series. * * @param series the series (zero-based index). * @param item the item (zero-based index). * * @return The volume-value. */ public double getVolumeValue(int series, int item) { double result = Double.NaN; Number volume = getVolume(series, item); if (volume != null) { result = volume.doubleValue(); } return result; }
/** * Adds one series from a SeriesDataset to the combination. Listeners are * notified of the change. * * @param data the SeriesDataset where series is contained * @param series series to add */ public void add(SeriesDataset data, int series) { add(new SubSeriesDataset(data, series)); }
/** * Returns the starting Y value for the specified series and item. * * @param series the index of the series of interest (zero-based). * @param item the index of the item of interest (zero-based). * * @return The starting Y value for the specified series and item. */ public Number getStartY(int series, int item) { if (this.parent instanceof IntervalXYDataset) { return ((IntervalXYDataset) this.parent).getStartY( this.map[series], item ); } else { return getY(series, item); } }
/** * Returns the ending X value for the specified series and item. * * @param series the index of the series of interest (zero-based). * @param item the index of the item of interest (zero-based). * * @return The ending X value for the specified series and item. */ public Number getEndX(int series, int item) { if (this.parent instanceof IntervalXYDataset) { return ((IntervalXYDataset) this.parent).getEndX( this.map[series], item ); } else { return getX(series, item); } }