/** * Returns the open-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 open-value for the specified series and item. */ public Number getOpen(int series, int item) { return ((OHLCDataset) this.parent).getOpen(this.map[series], item); }
/** * Returns the open-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 open-value for the specified series and item. */ public Number getOpen(int series, int item) { DatasetInfo di = getDatasetInfo(series); return ((OHLCDataset) di.data).getOpen(di.series, item); }
Number high = d.getHigh(series, item); Number low = d.getLow(series, item); Number open = d.getOpen(series, item); Number close = d.getClose(series, item); Number x = d.getX(series, item);
Number high = d.getHigh(series, item); Number low = d.getLow(series, item); Number open = d.getOpen(series, item); Number close = d.getClose(series, item); Number x = d.getX(series, item);
OHLCDataset ds = (OHLCDataset) dataset; 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));