public final class DataPoint extends NativeObjectContainer
Constructor and Description |
---|
DataPoint()
Creates the object with an empty native object.
|
Modifier and Type | Method and Description |
---|---|
double |
getAttribute(Key key)
Returns a custom field value from data point.
|
double |
getR()
Returns the bubble radius in pixels (not scaled).
|
Date |
getT()
Returns T value, is the date for time series.
|
double |
getX()
Returns X value.
|
double |
getY()
Returns Y value.
|
void |
setAttribute(Key key,
double value)
Sets a custom field to data point.
|
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 |
setT(Date t)
Sets T value, is the date for time series.
|
void |
setX(double x)
Sets X value.
|
void |
setY(double y)
Sets Y value.
|
checkValue, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public void setX(double x)
x
- X value.public double getX()
public void setY(double y)
y
- Y value.public double getY()
public void setR(double r)
r
- the bubble radius in pixels (not scaled).public double getR()
public void setT(Date t)
t
- T value.public Date getT()
null
is not set.public void setAttribute(Key key, double value)
key
- key of java script object to set.value
- value to set.public double getAttribute(Key key)
key
- key of java script object to get.Double.NaN
.