public final class DataItem extends Object
FloatingData
if the data set is a BAR data set and uses floating bars data.Constructor and Description |
---|
DataItem(Object object)
Creates the object with object which represents the value.
|
Modifier and Type | Method and Description |
---|---|
<T extends NativeObjectContainer> |
createDataPoint(NativeObjectContainerFactory<T> factory)
Returns a data point to be mapped for customization, like for out of the box controllers.
|
DataType |
getDataType()
Returns the data type of value.
|
double |
getValue()
Returns the value for the data set if it is or
Undefined.DOUBLE . |
DataPoint |
getValueAsDataPoint()
Returns the value for the data set as
DataPoint if it is or null . |
FloatingData |
getValueAsFloatingData()
Returns the value for the data set as
FloatingData if it is or null . |
String |
getValueAsString()
Returns the value for the data set as string if it is or
Undefined.STRING . |
public DataItem(Object object)
object
- object which represents the value.public DataType getDataType()
public double getValue()
Undefined.DOUBLE
.Undefined.DOUBLE
public FloatingData getValueAsFloatingData()
FloatingData
if it is or null
.FloatingData
if it is or null
public String getValueAsString()
Undefined.STRING
.Undefined.STRING
.public DataPoint getValueAsDataPoint()
DataPoint
if it is or null
.DataPoint
if it is or null
.public final <T extends NativeObjectContainer> T createDataPoint(NativeObjectContainerFactory<T> factory)
null
is returned.T
- type of data point to returnfactory
- factory instance to create a data pointnull
is returned.