Module xaos.ui.plot

Class DensityChartFX.ProjectionData<X,​Y>

    • Constructor Detail

      • ProjectionData

        public ProjectionData​(X[] xValues,
                              Y[] yValues)
        Creates new instance.
        Parameters:
        xValues - X coordinates.
        yValues - Y coordinates.
        See Also:
        set(Object[], Object[])
    • Method Detail

      • getXDoubleValue

        public final double getXDoubleValue​(int xIndex)
      • getXSize

        public final int getXSize()
        Description copied from interface: DensityChartFX.Data
        Size of the data along X axis.
        Returns:
        Number of X coordinates.
      • getXValue

        public final X getXValue​(int xIndex)
        Description copied from interface: DensityChartFX.Data
        Returns X coordinate at given index.
        Parameters:
        xIndex - Index of the X coordinate.
        Returns:
        X coordinate.
        See Also:
        DensityChartFX.Data.getXSize()
      • getYDoubleValue

        public final double getYDoubleValue​(int yIndex)
      • getYSize

        public final int getYSize()
        Description copied from interface: DensityChartFX.Data
        Size of the data along Y axis.
        Returns:
        Number of Y coordinates.
      • getYValue

        public final Y getYValue​(int yIndex)
        Description copied from interface: DensityChartFX.Data
        Returns Y coordinate at given index.
        Parameters:
        yIndex - Index of the Y coordinate.
        Returns:
        Y coordinate.
        See Also:
        DensityChartFX.Data.getYSize()
      • getZValue

        public double getZValue​(int xIndex,
                                int yIndex)
        Description copied from interface: DensityChartFX.Data
        Returns the Z value for given X and Y coordinate index.
        Parameters:
        xIndex - Index of the X coordinate.
        yIndex - Index of the Y coordinate.
        Returns:
        the value
      • set

        public final void set​(X[] xValues,
                              Y[] yValues)
        Sets the data.
        Parameters:
        xValues - X coordinates.
        yValues - Y coordinates.