Class XYZDataPoint

java.lang.Object
no.uib.jsparklines.data.XYZDataPoint
All Implemented Interfaces:
Serializable

public class XYZDataPoint
extends Object
implements Serializable
Object storing data about one data point in an XYZ plot.
Author:
Harald Barsnes
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    XYZDataPoint​(double x, double y, double z)
    Create a new XYZDataPoint.
  • Method Summary

    Modifier and Type Method Description
    double getX()
    Returns the x value.
    double getY()
    Returns the y value.
    double getZ()
    Returns the z value.
    void setX​(double x)
    Set the x value.
    void setY​(double y)
    Set the y value.
    void setZ​(double z)
    Set the z value.
    String toString()
    Returns the (x,y,x) value as a comma separated string.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • XYZDataPoint

      public XYZDataPoint​(double x, double y, double z)
      Create a new XYZDataPoint.
      Parameters:
      x - the x value
      y - the y value
      z - the z value
  • Method Details

    • getX

      public double getX()
      Returns the x value.
      Returns:
      the x value
    • setX

      public void setX​(double x)
      Set the x value.
      Parameters:
      x - the x to set
    • getY

      public double getY()
      Returns the y value.
      Returns:
      the y value
    • setY

      public void setY​(double y)
      Set the y value.
      Parameters:
      y - the y to set
    • getZ

      public double getZ()
      Returns the z value.
      Returns:
      the z value
    • setZ

      public void setZ​(double z)
      Set the z value.
      Parameters:
      z - the z to set
    • toString

      public String toString()
      Returns the (x,y,x) value as a comma separated string. Note that the values are rounded to two decimals.
      Overrides:
      toString in class Object
      Returns:
      the values as a string