Class AbstractDataSet3D<D extends AbstractDataSet3D<D>>

    • Constructor Detail

      • AbstractDataSet3D

        public AbstractDataSet3D​(java.lang.String name)
        Creates a new AbstractDataSet3D.
        Parameters:
        name - name of this data set.
    • Method Detail

      • getDataCount

        public int getDataCount()
        Returns total number of data points in this data set:
        xDataCount * yDataCount.
        Specified by:
        getDataCount in interface DataSet
        Returns:
        the number of data points
      • getZRange

        public DataRange getZRange()
        Description copied from interface: DataSet3D
        Returns data range of Z values.
        Specified by:
        getZRange in interface DataSet3D
        Returns:
        data range of Z values.
      • getXIndex

        public int getXIndex​(double x)
        Gets the index of the data point closest to the given x coordinate. The index returned may be less then zero or larger the the number of data points in the data set, if the x coordinate lies outside the range of the data set.
        Specified by:
        getXIndex in interface DataSet
        Overrides:
        getXIndex in class AbstractDataSet<D extends AbstractDataSet3D<D>>
        Parameters:
        x - the x position of the data point
        Returns:
        the index of the data point
      • getYIndex

        public int getYIndex​(double y)
        Gets the first index of the data point closest to the given y coordinate.
        Specified by:
        getYIndex in interface DataSet
        Overrides:
        getYIndex in class AbstractDataSet<D extends AbstractDataSet3D<D>>
        Parameters:
        y - the y position of the data point
        Returns:
        the index of the data point