public final class DatasetMetaItem extends NativeObjectContainer
Constructor and Description |
---|
DatasetMetaItem(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
Modifier and Type | Method and Description |
---|---|
List<DatasetItem> |
getDatasets()
Returns a list of dataset metadata items.
|
Type |
getType()
Returns the type of dataset.
|
String |
getXAxisID()
Returns the X axis ID.
|
String |
getYAxisID()
Returns the Y axis ID.
|
boolean |
isHidden()
Returns if the dataset is hidden.
|
void |
setHidden(boolean hidden)
Sets if the dataset must be hidden.
|
checkValue, empty, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, 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 DatasetMetaItem(NativeObject nativeObject)
nativeObject
- native java script object which contains all properties.public Type getType()
ChartType.BAR
.public boolean isHidden()
true
if the dataset is hidden, otherwise is UndefinedValues.BOOLEAN
.public void setHidden(boolean hidden)
hidden
- true
if the dataset must be hidden, otherwise is UndefinedValues.BOOLEAN
.public String getYAxisID()
Scales.DEFAULT_Y_AXIS_ID
.public String getXAxisID()
Scales.DEFAULT_X_AXIS_ID
.public List<DatasetItem> getDatasets()