Class WrappedDataSet

    • Constructor Detail

      • WrappedDataSet

        public WrappedDataSet​(java.lang.String name)
        Parameters:
        name - data set name
    • Method Detail

      • get

        public double get​(int dimIndex,
                          int index)
        Description copied from interface: DataSet
        Gets the x value of the data point with the index i
        Specified by:
        get in interface DataSet
        Parameters:
        dimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')
        index - data point index
        Returns:
        the x value
      • getDataCount

        public int getDataCount()
        Description copied from interface: DataSet
        Get the number of data points in the data set.
        Specified by:
        getDataCount in interface DataSet
        Returns:
        the number of data points
      • getDataset

        public DataSet getDataset()
        Returns:
        wrapped internal data set
      • getName

        public java.lang.String getName()
        Returns the name of the dataset. This will return the name of the wrapped dataset. If no dataset is wrapped, the name of this object is returned.
        Specified by:
        getName in interface DataSet
        Overrides:
        getName in class AbstractDataSet<WrappedDataSet>
        Returns:
        name of the dataset
      • getStyle

        public java.lang.String getStyle​(int index)
        Description copied from class: AbstractDataSet
        A string representation of the CSS style associated with this specific DataSet data point. @see #getStyle()
        Specified by:
        getStyle in interface DataSet
        Overrides:
        getStyle in class AbstractDataSet<WrappedDataSet>
        Parameters:
        index - the index of the specific data point
        Returns:
        user-specific data set style description (ie. may be set by user)
      • setDataset

        public void setDataset​(DataSet dataset)
        update/overwrite internal data set with content from other data set
        Parameters:
        dataset - new data set
      • set

        public DataSet set​(DataSet other,
                           boolean copy)
        Specified by:
        set in interface DataSet
        Parameters:
        other - Other DataSet to copy into this DataSet
        copy - true: perform a deep copy (default), false: reuse the other dataset's internal data structures (if applicable)
        Returns:
        itself (fluent design) -- N.B. existing update listener are preserved