Class DoubleDataSet3D

    • Constructor Detail

      • DoubleDataSet3D

        public DoubleDataSet3D​(java.lang.String name)
        Parameters:
        name - of data set
      • DoubleDataSet3D

        public DoubleDataSet3D​(java.lang.String name,
                               int dimX,
                               int dimY)
        Parameters:
        name - of data set
        dimX - horizontal binning dimension (equidistant model)
        dimY - vertical binning dimension (equidistant model)
      • DoubleDataSet3D

        public DoubleDataSet3D​(java.lang.String name,
                               double[][] zValues)
        Parameters:
        name - of data set
        zValues - array containing new X coordinates
      • DoubleDataSet3D

        public DoubleDataSet3D​(java.lang.String name,
                               double[] xValues,
                               double[] yValues,
                               double[][] zValues)
        Parameters:
        name - of data set
        xValues - array containing new X coordinates
        yValues - array containing new X coordinates
        zValues - array containing new X coordinates
    • Method Detail

      • set

        public void set​(double[] xValues,
                        double[] yValues,
                        double[][] zValues)
        overwrites/replaces data points with new coordinates
        Parameters:
        xValues - array containing new X coordinates
        yValues - array containing new X coordinates
        zValues - array containing new X coordinates
      • getZ

        public double getZ​(int xIndex,
                           int yIndex)
        Description copied from interface: DataSet3D
        Returns Z coordinate for the specified data point.
        Parameters:
        xIndex - index of X coordinate
        yIndex - index of Y coordinate
        Returns:
        Z coordinate
      • fillArray

        protected static void fillArray​(double[] array,
                                        int indexStart,
                                        int indexStop,
                                        double value)
        fast filling of an array with a default value
        initialize a smaller piece of the array and use the System.arraycopy call to fill in the rest of the array in an expanding binary fashion
        Parameters:
        array - to be initialized
        indexStart - the first index to be set
        indexStop - the last index to be set
        value - the value for each to be set element
      • clearData

        public DoubleDataSet3D clearData()
        clears all data points
        Returns:
        itself (fluent design)
      • set

        public void set​(int xIndex,
                        int yIndex,
                        double x,
                        double y,
                        double z)
        Description copied from interface: DataSet3D
        Changes a data point at specified index to new values.
        Parameters:
        xIndex - the x-axis coordinate index of the data point to be changed
        yIndex - the y-axis coordinate index of the data point to be changed
        x - X coordinate
        y - Y coordinate
        z - value on the z-axis
      • setX

        public void setX​(int xIndex,
                         double x)
        Parameters:
        xIndex - index of the to be modified point
        x - new X coordinate
      • setY

        public void setY​(int yIndex,
                         double y)
        Parameters:
        yIndex - index of the to be modified point
        y - new Y coordinate
      • set

        public void set​(int xIndex,
                        int yIndex,
                        double z)
        Parameters:
        xIndex - index of the to be modified point
        yIndex - index of the to be modified point
        z - new Z coordinate
      • getXDataCount

        public int getXDataCount()
        Description copied from interface: DataSet3D
        Returns number of X coordinates.
        Returns:
        the number of y axis bins
      • getYDataCount

        public int getYDataCount()
        Description copied from interface: DataSet3D
        Returns number of Y coordinates.
        Returns:
        the number of y axis bins
      • getX

        public double getX​(int i)
        Description copied from interface: DataSet
        Gets the x value of the data point with the index i
        Parameters:
        i - the index of the data point
        Returns:
        the x value
      • getY

        public double getY​(int i)
        Description copied from interface: DataSet
        Gets the y value of the data point with the index i
        Parameters:
        i - the index of the data point
        Returns:
        the y value
      • 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<DoubleDataSet3D>
        Parameters:
        index - the index of the specific data point
        Returns:
        user-specific data set style description (ie. may be set by user)