/** * Returns the high-value for the specified series and item. * <p> * Note: throws <code>ClassCastException</code> if the series if not from a * {@link OHLCDataset}. * * @param series the index of the series of interest (zero-based). * @param item the index of the item of interest (zero-based). * * @return The high-value for the specified series and item. */ public Number getHigh(int series, int item) { return ((OHLCDataset) this.parent).getHigh(this.map[series], item); }
/** * Returns the high-value for the specified series and item. * <P> * Note: throws <code>ClassCastException</code> if the series is not from a * {@link OHLCDataset}. * * @param series the index of the series of interest (zero-based). * @param item the index of the item of interest (zero-based). * * @return The high-value for the specified series and item. */ public Number getHigh(int series, int item) { DatasetInfo di = getDatasetInfo(series); return ((OHLCDataset) di.data).getHigh(di.series, item); }
Number high = d.getHigh(series, item); Number low = d.getLow(series, item); Number open = d.getOpen(series, item);
Number high = d.getHigh(series, item); Number low = d.getLow(series, item); Number open = d.getOpen(series, item);
area.setAttribute("date", new Date(ds.getX(si, ii).longValue())); area.setAttribute("open", ds.getOpen(si, ii)); area.setAttribute("high", ds.getHigh(si, ii)); area.setAttribute("low", ds.getLow(si, ii)); area.setAttribute("close", ds.getClose(si, ii));