public final class Labels extends NativeObjectContainer
SankeyDataPoint.setFrom(Key)
or SankeyDataPoint.setTo(Key)
.Constructor and Description |
---|
Labels()
Creates the object with an empty native object instance.
|
Modifier and Type | Method and Description |
---|---|
String |
get(Key nodeKey)
Returns the stored value in the map, by its key of the node.
|
String |
get(String nodeKey)
Returns the stored value in the map, by its key of the node.
|
List<String> |
getAsMultipleLines(Key nodeKey)
Returns the stored value in the map, by its key of the node.
|
List<String> |
getAsMultipleLines(String nodeKey)
Returns the labels as multiple lines, by its key of the node.
|
boolean |
isConsistent()
Returns
true if there is at least a key, stored in the map. |
void |
set(Key nodeKey,
List<String> value)
Sets a list of labels in the map, by its key of the node.
|
void |
set(Key nodeKey,
String value)
Sets a value in the map, by its key of the node.
|
void |
set(String nodeKey,
List<String> value)
Sets a list of labels in the map, by its key of the node.
|
void |
set(String nodeKey,
String value)
Sets a value in the map, by its key of the node.
|
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 boolean isConsistent()
true
if there is at least a key, stored in the map.true
if there is at least a key, stored in the mappublic void set(String nodeKey, String value)
nodeKey
- the key of sankey nodevalue
- the value to assign to the node.public void set(Key nodeKey, String value)
nodeKey
- the key of sankey nodevalue
- the value to assign to the node.public String get(String nodeKey)
nodeKey
- the key of sankey nodepublic String get(Key nodeKey)
nodeKey
- the key of sankey nodepublic void set(String nodeKey, List<String> value)
nodeKey
- the key of sankey nodevalue
- list of labels to assign to the node.public void set(Key nodeKey, List<String> value)
nodeKey
- the key of sankey nodevalue
- list of labels to assign to the node.public List<String> getAsMultipleLines(String nodeKey)
nodeKey
- the key of sankey node