Documentation of 'org.jfree.data.time.ohlc.OHLCSeries' Java class
OHLCSeries
org.jfree.data.time.ohlc

Class OHLCSeries

    • Constructor Detail

      • OHLCSeries

        public OHLCSeries(java.lang.Comparable key)
        Creates a new empty series. By default, items added to the series will be sorted into ascending order by period, and duplicate periods will not be allowed.
        Parameters:
        key - the series key (null not permitted).
    • Method Detail

      • getPeriod

        public RegularTimePeriod getPeriod(int index)
        Returns the time period for the specified item.
        Parameters:
        index - the item index.
        Returns:
        The time period.
      • getDataItem

        public ComparableObjectItem getDataItem(int index)
        Returns the data item at the specified index.
        Parameters:
        index - the item index.
        Returns:
        The data item.
      • add

        public void add(RegularTimePeriod period,
                        double open,
                        double high,
                        double low,
                        double close)
        Adds a data item to the series.
        Parameters:
        period - the period.
        open - the open-value.
        high - the high-value.
        low - the low-value.
        close - the close-value.
      • add

        public void add(OHLCItem item)
        Adds a data item to the series. The values from the item passed to this method will be copied into a new object.
        Parameters:
        item - the item (null not permitted).
        Since:
        1.0.17
      • remove

        public ComparableObjectItem remove(int index)
        Removes the item with the specified index.
        Parameters:
        index - the item index.
        Returns:
        The item removed.
        Since:
        1.0.14

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.