Class MatrixDataPoint
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.data.AbstractDataPoint
-
- org.pepstock.charba.client.data.AbstractXYDataPoint
-
- org.pepstock.charba.client.matrix.MatrixDataPoint
-
public final class MatrixDataPoint extends AbstractXYDataPoint
Maps the data passed to a matrix dataset.- Author:
- Andrea "Stock" Stocchero
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MatrixDataPoint.MatrixDataPointFactory
CreatesMatrixDataPoint
form aNativeObject
.-
Nested classes/interfaces inherited from class org.pepstock.charba.client.data.AbstractXYDataPoint
AbstractXYDataPoint.XYProperty
-
Nested classes/interfaces inherited from class org.pepstock.charba.client.data.AbstractDataPoint
AbstractDataPoint.CharbaProperty
-
-
Field Summary
Fields Modifier and Type Field Description static MatrixDataPoint.MatrixDataPointFactory
FACTORY
Factory instance to create data points.
-
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.Date
getYAsDate()
Returns Y value as date for time series.String
getYAsString()
Returns Y value as string.void
setValue(double value)
Sets the value of matrix data point.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.AbstractXYDataPoint
getX, getXAsDate, getXAsString, getXType, getY, getYType, setX, setX, setX, setY
-
Methods inherited from class org.pepstock.charba.client.data.AbstractDataPoint
checkAndSetType, getAttribute, getAttributeAsDate, getAttributeAsObject, getAttributeAsString, setAttribute, setAttribute, setAttribute, setAttribute
-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkAndGetColor, 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, 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, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
Field Detail
-
FACTORY
public static final MatrixDataPoint.MatrixDataPointFactory FACTORY
Factory instance to create data points. To use byDataItem
to get the data point for matrix chart.
-
-
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
-
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
-
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.
-
-