public final class DataPoint extends AbstractDataPoint
Constructor and Description |
---|
DataPoint()
Creates the object with an empty native object.
|
DataPoint(Date x,
double y)
Creates the object with the passed point values.
|
DataPoint(Date x,
FloatingData y)
Creates the object with the passed point values.
|
DataPoint(double x,
double y)
Creates the object with the passed point values.
|
DataPoint(double x,
double y,
double r)
Creates the object with the passed point values (for bubble).
|
DataPoint(double x,
FloatingData y)
Creates the object with the passed point values.
|
DataPoint(ItemsEnvelop<NativeObject> envelop)
Creates the object with a native object passed as argument by and
BaseEnvelop .This is called by the DataItem . |
DataPoint(String x,
double y)
Creates the object with the passed point values.
|
DataPoint(String x,
FloatingData y)
Creates the object with the passed point values.
|
Modifier and Type | Method and Description |
---|---|
double |
getR()
Returns the bubble radius in pixels (not scaled).
|
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.
|
FloatingData |
getYAsFloatingData()
Returns Y value.
|
ObjectType |
getYObjectType()
Returns the object type of data stored as Y.
|
void |
setR(double r)
Sets the bubble radius in pixels (not scaled).
It is not scaled by the chart, it is the raw radius in pixels of the bubble that is drawn on the canvas. |
void |
setX(Date x)
Sets X value as date for time series.
|
void |
setX(double x)
Sets X value as double (for scatter and bubble datasets).
|
void |
setX(String x)
Sets X value as string.
|
void |
setY(double y)
Sets Y value.
|
void |
setY(FloatingData y)
Sets Y value.
|
getAttribute, getAttributeAsDate, getAttributeAsObject, getAttributeAsString, setAttribute, setAttribute, setAttribute, setAttribute
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
public DataPoint()
public DataPoint(double x, double y)
x
- x value of data pointy
- y value of data pointpublic DataPoint(Date x, double y)
x
- x value of data pointy
- y value of data pointpublic DataPoint(String x, double y)
x
- x value of data pointy
- y value of data pointpublic DataPoint(double x, FloatingData y)
x
- x value of data pointy
- y value of data pointpublic DataPoint(Date x, FloatingData y)
x
- x value of data pointy
- y value of data pointpublic DataPoint(String x, FloatingData y)
x
- x value of data pointy
- y value of data pointpublic DataPoint(double x, double y, double r)
x
- x value of data pointy
- y value of data pointr
- the bubble radius in pixels (not scaled).public DataPoint(ItemsEnvelop<NativeObject> envelop)
BaseEnvelop
.DataItem
.envelop
- envelop which contains a native object with a data pointpublic ObjectType getXObjectType()
public void setX(double x)
x
- X value as doublepublic double getX()
public void setX(Date x)
x
- X value as date for time seriespublic Date getXAsDate()
null
if is not setpublic void setX(String x)
x
- X value as stringpublic String getXAsString()
Undefined.STRING
if is not setpublic ObjectType getYObjectType()
public void setY(double y)
y
- Y value.public double getY()
public void setY(FloatingData y)
y
- Y value.public FloatingData getYAsFloatingData()
public void setR(double r)
r
- the bubble radius in pixels (not scaled).public double getR()