public final class DataItem extends Object
FloatingData
if the dataset is a BAR dataset 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 |
---|---|
DataType |
getDataType()
Returns the data type of value.
|
double |
getValue()
Returns the value for the dataset if it is or
UndefinedValues.DOUBLE . |
FloatingData |
getValueAsFloatingData()
Returns the value for the dataset as
FloatingData if it is or null . |
String |
getValueAsString()
Returns the value for the dataset as string if it is or
UndefinedValues.STRING . |
public DataItem(Object object)
object
- object which represents the value.public DataType getDataType()
public double getValue()
UndefinedValues.DOUBLE
.UndefinedValues.DOUBLE
public FloatingData getValueAsFloatingData()
FloatingData
if it is or null
.FloatingData
if it is or null
public String getValueAsString()
UndefinedValues.STRING
.UndefinedValues.STRING
.