#385 Missing OHLCSeries add(...) overload

None
closed
General (246)
5
2013-11-21
2012-03-17
No

"TimeSeries.add(TimeSeriesDataItem item)" counterpart method is needed at "org.jfree.data.time.ohlc.OHLCSeries" class. It would avoid workarounds like "http://dashbov.svn.sourceforge.net/viewvc/dashbov/DashBov/src/org/jfree/data/time/ohlc/MyOHLCSeries.java?view=markup".

Discussion

  • Everton Gomes

    Everton Gomes - 2012-03-17

    Workaround

     
    Attachments
  • David Gilbert

    David Gilbert - 2013-11-21

    Thanks for the suggestion. For the 1.0.17 release, I will include this method:

    /**
     * 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</code> not permitted).
     * 
     * @since 1.0.17
     */
    public void add(OHLCItem item) {
        ParamChecks.nullNotPermitted(item, "item");
        add(item.getPeriod(), item.getOpenValue(), item.getHighValue(),
                item.getLowValue(), item.getCloseValue());
    }
    
     
  • David Gilbert

    David Gilbert - 2013-11-21
    • status: open --> closed
    • assigned_to: David Gilbert
    • Group: -->
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks