machineSeries.add(new FixedMillisecond(pixelIndex), task.getStartPeriodRangeFrom(), startPeriod, endPeriod, task.getStartPeriodRangeTo() + task.getDuration()); pixelIndex++;
/** * Adds a data item to the series. The values from the item passed to * this method will be copied into a new object. * * @param item the item ({@code null} not permitted). * * @since 1.0.17 */ public void add(OHLCItem item) { Args.nullNotPermitted(item, "item"); add(item.getPeriod(), item.getOpenValue(), item.getHighValue(), item.getLowValue(), item.getCloseValue()); }
double volume = Double.parseDouble(st.nextToken()); s1.add(new Day(date), open, high, low, close);
machineSeries.add(new FixedMillisecond(pixelIndex), task.getStartPeriodRangeFrom(), startPeriod, endPeriod, task.getStartPeriodRangeTo() + task.getDuration()); pixelIndex++;