Class MatrixDataPoint


  • public final class MatrixDataPoint
    extends AbstractDataPoint
    Maps the data passed to a matrix dataset.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • MatrixDataPoint

        public MatrixDataPoint()
        Creates the object with an empty native object.
      • MatrixDataPoint

        public MatrixDataPoint​(double x,
                               double y,
                               double value)
        Creates the object with the passed point values.
        Parameters:
        x - x value of data point
        y - y value of data point
        value - value of the data point
      • MatrixDataPoint

        public MatrixDataPoint​(Date x,
                               double y,
                               double value)
        Creates the object with the passed point values.
        Parameters:
        x - x value of data point
        y - y value of data point
        value - value of the data point
      • MatrixDataPoint

        public MatrixDataPoint​(String x,
                               double y,
                               double value)
        Creates the object with the passed point values.
        Parameters:
        x - x value of data point
        y - y value of data point
        value - value of the data point
      • MatrixDataPoint

        public MatrixDataPoint​(double x,
                               Date y,
                               double value)
        Creates the object with the passed point values.
        Parameters:
        x - x value of data point
        y - y value of data point
        value - value of the data point
      • MatrixDataPoint

        public MatrixDataPoint​(Date x,
                               Date y,
                               double value)
        Creates the object with the passed point values.
        Parameters:
        x - x value of data point
        y - y value of data point
        value - value of the data point
      • MatrixDataPoint

        public MatrixDataPoint​(String x,
                               Date y,
                               double value)
        Creates the object with the passed point values.
        Parameters:
        x - x value of data point
        y - y value of data point
        value - value of the data point
      • MatrixDataPoint

        public MatrixDataPoint​(double x,
                               String y,
                               double value)
        Creates the object with the passed point values.
        Parameters:
        x - x value of data point
        y - y value of data point
        value - value of the data point
      • MatrixDataPoint

        public MatrixDataPoint​(Date x,
                               String y,
                               double value)
        Creates the object with the passed point values.
        Parameters:
        x - x value of data point
        y - y value of data point
        value - value of the data point
      • MatrixDataPoint

        public MatrixDataPoint​(String x,
                               String y,
                               double value)
        Creates the object with the passed point values.
        Parameters:
        x - x value of data point
        y - y value of data point
        value - value of the data point
    • Method Detail

      • getXObjectType

        public ObjectType getXObjectType()
        Returns the object type of data stored as X.
        Returns:
        the object type of data stored as X
      • getYObjectType

        public ObjectType getYObjectType()
        Returns the object type of data stored as Y.
        Returns:
        the object type of data stored as Y
      • setX

        public void setX​(double x)
        Sets X value as double (for scatter and bubble datasets).
        Parameters:
        x - X value as double
      • getX

        public double getX()
        Returns X value as double (for scatter and bubble datasets).
        Returns:
        X value as double
      • setY

        public void setY​(double y)
        Sets Y value.
        Parameters:
        y - Y value.
      • getY

        public double getY()
        Returns Y value.
        Returns:
        Y value.
      • setX

        public void setX​(Date x)
        Sets X value as date for time series.
        Parameters:
        x - X value as date for time series
      • getXAsDate

        public Date getXAsDate()
        Returns X value as date for time series.
        Returns:
        X value as date for time series or null if is not set
      • setY

        public void setY​(Date y)
        Sets Y value as date for time series.
        Parameters:
        y - Y value as date for time series
      • getYAsDate

        public Date getYAsDate()
        Returns Y value as date for time series.
        Returns:
        Y value as date for time series
      • setX

        public void setX​(String x)
        Sets X value as string.
        Parameters:
        x - X value as string
      • getXAsString

        public String getXAsString()
        Returns X value as string.
        Returns:
        X value as string or Undefined.STRING if is not set
      • setY

        public void setY​(String y)
        Sets Y value as string.
        Parameters:
        y - Y value as string
      • getYAsString

        public String getYAsString()
        Returns Y value as string.
        Returns:
        Y value as string
      • setValue

        public void setValue​(double value)
        Sets the value of matrix data point.
        Parameters:
        value - the value of matrix data point
      • getValue

        public double getValue()
        Returns the value of matrix data point.
        Returns:
        the value of matrix data point.