Class Labels
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.sankey.Labels
 
 
- 
 public final class Labels extends NativeObjectContainer Is a map to apply a different label to sankey node, node defined bySankeyDataPoint.setFrom(Key)orSankeyDataPoint.setTo(Key).- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Constructor SummaryConstructors Constructor Description Labels()Creates the object with an empty native object instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringget(String nodeKey)Returns the stored value in the map, by its key of the node.Stringget(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.List<String>getAsMultipleLines(Key nodeKey)Returns the stored value in the map, by its key of the node.booleanisConsistent()Returnstrueif there is at least a key, stored in the map.voidset(String nodeKey, String value)Sets a value in the map, by its key of the node.voidset(String nodeKey, List<String> value)Sets a list of labels in the map, by its key of the node.voidset(Key nodeKey, String value)Sets a value in the map, by its key of the node.voidset(Key nodeKey, List<String> value)Sets a list of labels in the map, by its key of the node.- 
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainercheckDefaultValuesArgument, 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, 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, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
 
- 
 
- 
- 
- 
Method Detail- 
isConsistentpublic boolean isConsistent() Returnstrueif there is at least a key, stored in the map.- Returns:
- trueif there is at least a key, stored in the map
 
 - 
setpublic void set(String nodeKey, String value) Sets a value in the map, by its key of the node.- Parameters:
- nodeKey- the key of sankey node
- value- the value to assign to the node.
 
 - 
setpublic void set(Key nodeKey, String value) Sets a value in the map, by its key of the node.- Parameters:
- nodeKey- the key of sankey node
- value- the value to assign to the node.
 
 - 
getpublic String get(String nodeKey) Returns the stored value in the map, by its key of the node.- Parameters:
- nodeKey- the key of sankey node
- Returns:
- the value to assign to the node.
 
 - 
getpublic String get(Key nodeKey) Returns the stored value in the map, by its key of the node.- Parameters:
- nodeKey- the key of sankey node
- Returns:
- the value to assign to the node.
 
 - 
setpublic void set(String nodeKey, List<String> value) Sets a list of labels in the map, by its key of the node.- Parameters:
- nodeKey- the key of sankey node
- value- list of labels to assign to the node.
 
 - 
setpublic void set(Key nodeKey, List<String> value) Sets a list of labels in the map, by its key of the node.- Parameters:
- nodeKey- the key of sankey node
- value- list of labels to assign to the node.
 
 - 
getAsMultipleLinespublic List<String> getAsMultipleLines(String nodeKey) Returns the labels as multiple lines, by its key of the node.- Parameters:
- nodeKey- the key of sankey node
- Returns:
- list of labels
 
 
- 
 
-