Class Priority
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.sankey.Priority
 
 
- 
 public final class Priority extends NativeObjectContainer Is a map to apply a different priority to sankey node, priority used to layout calculation.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Constructor SummaryConstructors Constructor Description Priority()Creates the object with an empty native object instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intget(String nodeKey)Returns the stored value in the map, by its key of the node.intget(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, int value)Sets a value in the map, by its key of the node.voidset(Key nodeKey, int value)Sets a value 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, 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 final 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 final void set(String nodeKey, int 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 final void set(Key nodeKey, int 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 final int 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 final int 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.
 
 
- 
 
-