public final class Labels extends NativeObjectContainer
DataLabelsPlugin.ID
plugin configuration.Modifier and Type | Method and Description |
---|---|
DataLabelsOptions |
getLabel(Key key)
Returns the stored options for specific key.
|
DataLabelsOptions |
getLabel(String key)
Returns the stored options for specific key.
|
List<Key> |
getLabelKeys()
Returns the list of all keys related to stored options.
|
boolean |
hasLabel(Key key)
Returns
true if there is a stored options for specific key. |
boolean |
hasLabel(String key)
Returns
true if there is a stored options for specific key. |
void |
setLabel(Key key,
DataLabelsOptions options)
Sets new data labels options with a specific key.
|
void |
setLabel(String key,
DataLabelsOptions options)
Sets new data labels options with a specific key.
|
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 void setLabel(String key, DataLabelsOptions options)
key
- key of the optionsoptions
- options instancepublic void setLabel(Key key, DataLabelsOptions options)
key
- key of the optionsoptions
- options instancepublic DataLabelsOptions getLabel(String key)
key
- key of the optionsnull
if no options are stored for that keypublic DataLabelsOptions getLabel(Key key)
key
- key of the optionsnull
if no options are stored for that keypublic boolean hasLabel(String key)
true
if there is a stored options for specific key.key
- key of the optionstrue
if there is a stored options for specific keypublic boolean hasLabel(Key key)
true
if there is a stored options for specific key.key
- key of the optionstrue
if there is a stored options for specific key