Class SankeyDataPoint
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.data.AbstractDataPoint
- 
- org.pepstock.charba.client.sankey.SankeyDataPoint
 
 
 
- 
 public final class SankeyDataPoint extends AbstractDataPoint Maps the data passed to a sankey dataset.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.pepstock.charba.client.data.AbstractDataPointAbstractDataPoint.CharbaProperty
 
- 
 - 
Constructor SummaryConstructors Constructor Description SankeyDataPoint()Creates the object with an empty native object.SankeyDataPoint(String from, String to, double flow)Creates the object with the passed point values.SankeyDataPoint(String from, Key to, double flow)Creates the object with the passed point values.SankeyDataPoint(Key from, String to, double flow)Creates the object with the passed point values.SankeyDataPoint(Key from, Key to, double flow)Creates the object with the passed point values.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetFlow()Returns flow value.StringgetFrom()Returns from value as string.KeygetFromAsKey()Returns from value asKey.StringgetTo()Returns to value as string.KeygetToAsKey()Returns to value asKey.voidsetFlow(double flow)Sets flow value.voidsetFrom(String from)Sets from value as string.voidsetFrom(Key from)Sets from value as key.voidsetTo(String to)Sets to value as string.voidsetTo(Key to)Sets to value as key.- 
Methods inherited from class org.pepstock.charba.client.data.AbstractDataPointcheckAndSetType, getAttribute, getAttributeAsDate, getAttributeAsObject, getAttributeAsString, setAttribute, setAttribute, setAttribute, setAttribute
 - 
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
 
- 
 
- 
- 
- 
Constructor Detail- 
SankeyDataPointpublic SankeyDataPoint() Creates the object with an empty native object.
 - 
SankeyDataPointpublic SankeyDataPoint(Key from, Key to, double flow) Creates the object with the passed point values.- Parameters:
- from- from value of data point
- to- to value of data point
- flow- value of the data point
 
 - 
SankeyDataPointpublic SankeyDataPoint(String from, Key to, double flow) Creates the object with the passed point values.- Parameters:
- from- from value of data point
- to- to value of data point
- flow- value of the data point
 
 - 
SankeyDataPointpublic SankeyDataPoint(Key from, String to, double flow) Creates the object with the passed point values.- Parameters:
- from- from value of data point
- to- to value of data point
- flow- value of the data point
 
 
- 
 - 
Method Detail- 
setFlowpublic void setFlow(double flow) Sets flow value.- Parameters:
- flow- flow value.
 
 - 
getFlowpublic double getFlow() Returns flow value.- Returns:
- flow value.
 
 - 
setFrompublic void setFrom(String from) Sets from value as string.- Parameters:
- from- from value as string
 
 - 
setFrompublic void setFrom(Key from) Sets from value as key.- Parameters:
- from- from value as key
 
 - 
getFrompublic String getFrom() Returns from value as string.- Returns:
- from value as string or Undefined.STRINGif is not set
 
 - 
getFromAsKeypublic Key getFromAsKey() Returns from value asKey.- Returns:
- from value as Keyornullif is not set
 
 - 
setTopublic void setTo(String to) Sets to value as string.- Parameters:
- to- to value as string
 
 - 
setTopublic void setTo(Key to) Sets to value as key.- Parameters:
- to- to value as key
 
 - 
getTopublic String getTo() Returns to value as string.- Returns:
- to value as string or Undefined.STRINGif is not set
 
 
- 
 
-