Package org.pepstock.charba.client.data
Class AbstractXYDataPoint
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.data.AbstractDataPoint
- 
- org.pepstock.charba.client.data.AbstractXYDataPoint
 
 
 
- 
- Direct Known Subclasses:
- DataPoint,- MatrixDataPoint
 
 public abstract class AbstractXYDataPoint extends AbstractDataPoint Maps the common methods for a data point with X and Y properties.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected static classAbstractXYDataPoint.XYPropertyName of properties of native object.
 No private because it is used by time series item- 
Nested classes/interfaces inherited from class org.pepstock.charba.client.data.AbstractDataPointAbstractDataPoint.CharbaProperty
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractXYDataPoint(NativeObject nativeObject)Creates the object with a native object passed as argument.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetX()Returns X value as double (for scatter and bubble datasets).DategetXAsDate()Returns X value as date for time series.StringgetXAsString()Returns X value as string.DataPointTypegetXType()Returns the object type of data stored as X.doublegetY()Returns Y value.DataPointTypegetYType()Returns the object type of data stored as Y.voidsetX(double x)Sets X value as double (for scatter and bubble datasets).voidsetX(String x)Sets X value as string.voidsetX(Date x)Sets X value as date for time series.voidsetY(double y)Sets Y value.- 
Methods inherited from class org.pepstock.charba.client.data.AbstractDataPointcheckAndSetType, getAttribute, getAttributeAsDate, getAttributeAsObject, getAttributeAsString, setAttribute, setAttribute, setAttribute, setAttribute
 - 
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainercheckAndGetColor, 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, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
 
- 
 
- 
- 
- 
Constructor Detail- 
AbstractXYDataPointprotected AbstractXYDataPoint(NativeObject nativeObject) Creates the object with a native object passed as argument.- Parameters:
- nativeObject- native object which maps a data point
 
 
- 
 - 
Method Detail- 
getXTypepublic final DataPointType getXType() Returns the object type of data stored as X.- Returns:
- the object type of data stored as X
 
 - 
setXpublic final void setX(double x) Sets X value as double (for scatter and bubble datasets).- Parameters:
- x- X value as double
 
 - 
getXpublic final double getX() Returns X value as double (for scatter and bubble datasets).- Returns:
- X value as double
 
 - 
setXpublic final void setX(Date x) Sets X value as date for time series.- Parameters:
- x- X value as date for time series
 
 - 
getXAsDatepublic final Date getXAsDate() Returns X value as date for time series.- Returns:
- X value as date for time series or nullif is not set
 
 - 
setXpublic final void setX(String x) Sets X value as string.- Parameters:
- x- X value as string
 
 - 
getXAsStringpublic final String getXAsString() Returns X value as string.- Returns:
- X value as string or Undefined.STRINGif is not set
 
 - 
getYTypepublic final DataPointType getYType() Returns the object type of data stored as Y.- Returns:
- the object type of data stored as Y
 
 - 
setYpublic final void setY(double y) Sets Y value.- Parameters:
- y- Y value.
 
 - 
getYpublic final double getY() Returns Y value.- Returns:
- Y value.
 
 
- 
 
-