public final class Labels extends NativeObjectContainer
DataLabelsPlugin.ID
plugin configuration.Modifier and Type | Method and Description |
---|---|
LabelItem |
createLabel(DataLabelId id)
Returns new options for specific id.
|
LabelItem |
createLabel(String id)
Returns new options for specific id.
|
LabelItem |
getLabel(DataLabelId id)
Returns the stored options for specific id.
|
LabelItem |
getLabel(String id)
Returns the stored options for specific id.
|
List<Key> |
getLabelKeys()
Returns the list of all keys related to stored options.
|
boolean |
hasLabel(DataLabelId id)
Returns
true if there is a stored options for specific key. |
boolean |
hasLabel(String id)
Returns
true if there is a stored options for specific id. |
void |
removeLabel(DataLabelId id)
Removes an existing label for specific id.
|
void |
removeLabel(String id)
Removes an existing label for specific id.
|
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 LabelItem createLabel(String id)
id
- id of the optionspublic LabelItem createLabel(DataLabelId id)
id
- id of the optionspublic LabelItem getLabel(String id)
id
- id of the optionsnull
if no options are stored for that idpublic LabelItem getLabel(DataLabelId id)
id
- id of the optionsnull
if no options are stored for that idpublic boolean hasLabel(String id)
true
if there is a stored options for specific id.id
- id of the optionstrue
if there is a stored options for specific idpublic boolean hasLabel(DataLabelId id)
true
if there is a stored options for specific key.id
- key of the optionstrue
if there is a stored options for specific keypublic void removeLabel(String id)
id
- id of the optionspublic void removeLabel(DataLabelId id)
id
- key of the options