Package no.uib.jsparklines.data
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.
-
Constructor Details
-
XYZDataPoint
public XYZDataPoint(double x, double y, double z)Create a new XYZDataPoint.- Parameters:
x
- the x valuey
- the y valuez
- 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
Returns the (x,y,x) value as a comma separated string. Note that the values are rounded to two decimals.
-