Class MatrixDataPoint
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.data.AbstractDataPoint
-
- org.pepstock.charba.client.matrix.MatrixDataPoint
-
public final class MatrixDataPoint extends AbstractDataPoint
Maps the data passed to a matrix dataset.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Constructor Description MatrixDataPoint()
Creates the object with an empty native object.MatrixDataPoint(double x, double y, double value)
Creates the object with the passed point values.MatrixDataPoint(double x, String y, double value)
Creates the object with the passed point values.MatrixDataPoint(double x, Date y, double value)
Creates the object with the passed point values.MatrixDataPoint(String x, double y, double value)
Creates the object with the passed point values.MatrixDataPoint(String x, String y, double value)
Creates the object with the passed point values.MatrixDataPoint(String x, Date y, double value)
Creates the object with the passed point values.MatrixDataPoint(Date x, double y, double value)
Creates the object with the passed point values.MatrixDataPoint(Date x, String y, double value)
Creates the object with the passed point values.MatrixDataPoint(Date x, Date y, double value)
Creates the object with the passed point values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getValue()
Returns the value of matrix data point.double
getX()
Returns X value as double (for scatter and bubble datasets).Date
getXAsDate()
Returns X value as date for time series.String
getXAsString()
Returns X value as string.ObjectType
getXObjectType()
Returns the object type of data stored as X.double
getY()
Returns Y value.Date
getYAsDate()
Returns Y value as date for time series.String
getYAsString()
Returns Y value as string.ObjectType
getYObjectType()
Returns the object type of data stored as Y.void
setValue(double value)
Sets the value of matrix data point.void
setX(double x)
Sets X value as double (for scatter and bubble datasets).void
setX(String x)
Sets X value as string.void
setX(Date x)
Sets X value as date for time series.void
setY(double y)
Sets Y value.void
setY(String y)
Sets Y value as string.void
setY(Date y)
Sets Y value as date for time series.-
Methods inherited from class org.pepstock.charba.client.data.AbstractDataPoint
getAttribute, getAttributeAsDate, getAttributeAsObject, getAttributeAsString, setAttribute, setAttribute, setAttribute, setAttribute
-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
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 pointy
- y value of data pointvalue
- 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 pointy
- y value of data pointvalue
- 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 pointy
- y value of data pointvalue
- 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 pointy
- y value of data pointvalue
- 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 pointy
- y value of data pointvalue
- 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 pointy
- y value of data pointvalue
- 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 pointy
- y value of data pointvalue
- 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 pointy
- y value of data pointvalue
- 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.
-
-