Class SankeyDataset
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.commons.AbstractNode
- 
- org.pepstock.charba.client.data.Dataset
- 
- org.pepstock.charba.client.sankey.SankeyDataset
 
 
 
 
- 
- All Implemented Interfaces:
- HasCallbackScope,- HasDataset,- IsDefaultAnimationContainer,- IsDefaultAnimationTransition,- HasAnimationOptions
 
 public final class SankeyDataset extends Dataset Sankey charts are a type of flow diagram in which the width of the arrows is proportional to the flow rate.
 Sankey diagrams emphasize the major transfers or flows within a system.
 They help locate the most important contributions to a flow.
 They often show conserved quantities within defined system boundaries.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSankeyDataset.DataPointFactoryFactory to create a sankey data point from a native object, used for array container lists.- 
Nested classes/interfaces inherited from class org.pepstock.charba.client.data.DatasetDataset.CanvasObjectProperty, Dataset.CommonProperty
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static SankeyDataset.DataPointFactoryDATAPOINTS_FACTORYFactory to createSankeyDataPoints.static StringDEFAULT_BORDER_COLORDefault element border color,HtmlColor.BLACK.static intDEFAULT_BORDER_WIDTHDefault element border width, 1.static StringDEFAULT_COLORDefault element color,HtmlColor.BLACK.static StringDEFAULT_COLOR_FROMDefault starting color,HtmlColor.RED.static StringDEFAULT_COLOR_TODefault ending color,HtmlColor.GREEN.static intDEFAULT_NODE_WIDTHDefault element width, 10.- 
Fields inherited from class org.pepstock.charba.client.data.DatasetDEFAULT_HIDDEN, DEFAULT_NORMALIZED, DEFAULT_PARSING
 
- 
 - 
Constructor SummaryConstructors Constructor Description SankeyDataset()Creates a data set.
 It uses the global options has default.SankeyDataset(IsDefaultOptions defaultValues)Creates a data set setting the defaults value.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IsColorgetBorderColor()Returns the border color of the sankey elements.StringgetBorderColorAsString()Returns the border color of the sankey elements.intgetBorderWidth()Returns the width of the border in pixels of sankey elements.doublegetClip()Returns alwaysUndefined.DOUBLEbecause is always disabled.ClipgetClipAsObject()Returns alwaysClipinstance withUndefined.DOUBLEbecause is always disabled.IsColorgetColor()Returns the font color of the sankey elements.StringgetColorAsString()Returns the font color of the sankey elements.List<IsColor>getColorFrom()Returns the starting color of the flow between sankey elements.List<String>getColorFromAsString()Returns the starting color of the flow between sankey elements.ColorCallback<DatasetContext>getColorFromCallback()Returns the color "from" callback, if set, otherwisenull.ColorModegetColorMode()Returns the color mode between sankey elements.ColorModeCallbackgetColorModeCallback()Returns the color mode callback, if set, otherwisenull.List<IsColor>getColorTo()Returns the ending color of the flow between sankey elements.List<String>getColorToAsString()Returns the ending color of the flow between sankey elements.ColorCallback<DatasetContext>getColorToCallback()Returns the color "to" callback, if set, otherwisenull.ColumngetColumn()Returns the map for assigning the start or ending position to the sankey elements.List<Double>getData(boolean binding)Throws an exception because not available.List<SankeyDataPoint>getDataPoints()Returns the sankey data property of a dataset for a chart is specified as an array of sankey data pointsList<SankeyDataPoint>getDataPoints(boolean binding)Returns the sankey data property of a dataset for a chart is specified as an array of sankey data pointsIsFontgetFont()Returns the font object.FontCallback<DatasetContext>getFontCallback()Returns the font callback, if set, otherwisenull.List<IsColor>getHoverColorFrom()Returns the starting color of the flow between sankey elements, when hovered.List<String>getHoverColorFromAsString()Returns the starting color of the flow between sankey elements, when hovered.ColorCallback<DatasetContext>getHoverColorFromCallback()Returns the color "from" callback when hovered, if set, otherwisenull.List<IsColor>getHoverColorTo()Returns the ending color of the flow between sankey elements, when hovered.List<String>getHoverColorToAsString()Returns the ending color of the flow between sankey elements, when hovered.ColorCallback<DatasetContext>getHoverColorToCallback()Returns the color "to" callback when hovered, if set, otherwisenull.LabelsgetLabels()Returns the map for labeling the sankey elements.intgetNodeWidth()Returns the width of sankey elements.doublegetPadding()Returns the padding between the top of the node and the first label to draw, when multiple lines for labels are set, in pixels.PaddingCallbackgetPaddingCallback()Returns the padding callback, if set, otherwisenull.PrioritygetPriority()Returns the map for assigning a priority to the sankey elements.SizegetSize()ReturnsSize.MINif flow overlap is preferred.SizeCallbackgetSizeCallback()Returns the size callback, if set, otherwisenull.voidsetBorderColor(String borderColor)Sets the border color of the sankey elements.voidsetBorderColor(IsColor borderColor)Sets the border color of the sankey elements.voidsetBorderWidth(int borderWidth)Sets the width of the border in pixels of sankey elements.voidsetClip(boolean clip)Sets how to clip relative to the chart area.
 Iffalseallows overflow, otherwisetrueclips that many pixels inside the chart area.voidsetClip(double clip)Sets how to clip relative to the chart area.
 This is ignored in order to disable clipping.voidsetClip(Clip clip)Sets how to clip relative to the chart area.
 This is ignored in order to disable clipping.voidsetColor(String color)Sets the font color of the sankey elements.voidsetColor(IsColor color)Sets the font color of the sankey elements.voidsetColorFrom(String... colors)Sets the starting color of the flow between sankey elements.voidsetColorFrom(ColorCallback<DatasetContext> colorCallback)Sets the color "from" callback.voidsetColorFrom(NativeCallback colorCallback)Sets the color "from" callback.voidsetColorFrom(IsColor... colors)Sets the starting color of the flow between sankey elements.voidsetColorMode(NativeCallback colorModeCallback)Sets the color mode callback.voidsetColorMode(ColorModeCallback colorModeCallback)Sets the color mode callback.voidsetColorMode(ColorMode colorMode)Sets the color mode between sankey elements.voidsetColorTo(String... colors)Sets the ending color of the flow between sankey elements.voidsetColorTo(ColorCallback<DatasetContext> colorCallback)Sets the color "to" callback.voidsetColorTo(NativeCallback colorCallback)Sets the color "to" callback.voidsetColorTo(IsColor... colors)Sets the ending color of the flow between sankey elements.voidsetColumn(Column column)Sets the map for assigning the start or ending position to the sankey elements.voidsetData(double... values)Throws an exception because not available.voidsetData(List<Double> values)Throws an exception because not available.voidsetDataPoints(List<SankeyDataPoint> datapoints)Sets the data property of a data set for a chart is specified as an array of data points.voidsetDataPoints(SankeyDataPoint... datapoints)Sets the data property of a data set for a chart is specified as an array of data points.voidsetFont(FontCallback<DatasetContext> fontCallback)Sets the font callback.voidsetFont(NativeCallback fontCallback)Sets the font callback.voidsetHoverColorFrom(String... colors)Sets the starting color of the flow between sankey elements, when hovered.voidsetHoverColorFrom(ColorCallback<DatasetContext> colorCallback)Sets the color "from" callback when hovered.voidsetHoverColorFrom(NativeCallback colorCallback)Sets the color "from" callback when hovered.voidsetHoverColorFrom(IsColor... colors)Sets the starting color of the flow between sankey elements, when hovered.voidsetHoverColorTo(String... colors)Sets the ending color of the flow between sankey elements, when hovered.voidsetHoverColorTo(ColorCallback<DatasetContext> colorCallback)Sets the color "to" callback when hovered.voidsetHoverColorTo(NativeCallback colorCallback)Sets the color "to" callback when hovered.voidsetHoverColorTo(IsColor... colors)Sets the ending color of the flow between sankey elements, when hovered.voidsetLabels(Labels labels)Sets the map for labeling the sankey elements.voidsetNodeWidth(int nodeWidth)Sets the width of sankey elements.voidsetPadding(double padding)Sets the padding between the top of the node and the first label to draw, when multiple lines for labels are set, in pixels.voidsetPadding(NativeCallback paddingCallback)Sets the padding callback.voidsetPadding(PaddingCallback paddingCallback)Sets the padding callback.voidsetParsing(boolean parsing)Sets how to parse the data set.
 This is ignored because it must alwasy set totrue.voidsetPriority(Priority priority)Sets the map for assigning a priority to the sankey elements.voidsetSize(NativeCallback sizeCallback)Sets the size callback.voidsetSize(SizeCallback sizeCallback)Sets the size callback.voidsetSize(Size size)SetsSize.MINif flow overlap is preferred.- 
Methods inherited from class org.pepstock.charba.client.data.DatasetcreateContext, getAnimationContainer, getBackgroundColorCallback, getBorderColorCallback, getData, getDataCount, getDataset, getDataType, getDefaultBackgroundColorAsString, getDefaultBorderColorAsString, getDefaultBorderWidth, getDefaultHoverBackgroundColorAsString, getDefaultHoverBorderColorAsString, getDefaultHoverBorderWidth, getDefaultValues, getHoverBackgroundColorCallback, getHoverBorderColorCallback, getId, getLabel, getOptions, getOptions, getScope, getType, getTypedDataset, hasOptions, invokeColorCallback, isClip, isHidden, isNormalized, isParsing, removeOptions, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setHidden, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setLabel, setNormalized, setOptions, setOptions
 - 
Methods inherited from class org.pepstock.charba.client.commons.AbstractNodecheckAndAddToParent, getChildKey, getParentNode, getRootNode, getUpdateListener, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setUpdateListener, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
 - 
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
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.pepstock.charba.client.options.HasAnimationOptionsgetAnimation, getAnimations, getTransitions, isAnimationEnabled, setAnimationEnabled
 
- 
 
- 
- 
- 
Field Detail- 
DATAPOINTS_FACTORYpublic static final SankeyDataset.DataPointFactory DATAPOINTS_FACTORY Factory to createSankeyDataPoints.
 - 
DEFAULT_COLOR_FROMpublic static final String DEFAULT_COLOR_FROM Default starting color,HtmlColor.RED.
 - 
DEFAULT_COLOR_TOpublic static final String DEFAULT_COLOR_TO Default ending color,HtmlColor.GREEN.
 - 
DEFAULT_COLORpublic static final String DEFAULT_COLOR Default element color,HtmlColor.BLACK.
 - 
DEFAULT_BORDER_COLORpublic static final String DEFAULT_BORDER_COLOR Default element border color,HtmlColor.BLACK.
 - 
DEFAULT_BORDER_WIDTHpublic static final int DEFAULT_BORDER_WIDTH Default element border width, 1.- See Also:
- Constant Field Values
 
 - 
DEFAULT_NODE_WIDTHpublic static final int DEFAULT_NODE_WIDTH Default element width, 10.- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
SankeyDatasetpublic SankeyDataset() Creates a data set.
 It uses the global options has default.
 - 
SankeyDatasetpublic SankeyDataset(IsDefaultOptions defaultValues) Creates a data set setting the defaults value.- Parameters:
- defaultValues- default options
 
 
- 
 - 
Method Detail- 
getFontpublic IsFont getFont() Returns the font object.- Returns:
- the font object.
 
 - 
setLabelspublic void setLabels(Labels labels) Sets the map for labeling the sankey elements.- Parameters:
- labels- the map for labeling the sankey elements
 
 - 
getLabelspublic Labels getLabels() Returns the map for labeling the sankey elements.- Returns:
- the map for labeling the sankey elements
 
 - 
setPrioritypublic void setPriority(Priority priority) Sets the map for assigning a priority to the sankey elements.- Parameters:
- priority- the map for assigning a priority to the sankey elements
 
 - 
getPrioritypublic Priority getPriority() Returns the map for assigning a priority to the sankey elements.- Returns:
- the map for assigning a priority to the sankey elements
 
 - 
setColumnpublic void setColumn(Column column) Sets the map for assigning the start or ending position to the sankey elements.- Parameters:
- column- the map for assigning the start or ending position to the sankey elements
 
 - 
getColumnpublic Column getColumn() Returns the map for assigning the start or ending position to the sankey elements.- Returns:
- the map for assigning the start or ending position to the sankey elements
 
 - 
setDataPointspublic void setDataPoints(SankeyDataPoint... datapoints) Sets the data property of a data set for a chart is specified as an array of data points.- Parameters:
- datapoints- an array of data points
 
 - 
setDataPointspublic void setDataPoints(List<SankeyDataPoint> datapoints) Sets the data property of a data set for a chart is specified as an array of data points.- Parameters:
- datapoints- a list of data points
 
 - 
getDataPointspublic List<SankeyDataPoint> getDataPoints() Returns the sankey data property of a dataset for a chart is specified as an array of sankey data points- Returns:
- a list of sankey data points or an empty list of data points.
 
 - 
getDataPointspublic List<SankeyDataPoint> getDataPoints(boolean binding) Returns the sankey data property of a dataset for a chart is specified as an array of sankey data points- Parameters:
- binding- if- truebinds the new array list in the container
- Returns:
- a list of sankey data points or an empty list of data points
 
 - 
setSizepublic void setSize(Size size) SetsSize.MINif flow overlap is preferred.- Parameters:
- size-- Size.MINif flow overlap is preferred
 
 - 
getSizepublic Size getSize() ReturnsSize.MINif flow overlap is preferred.- Returns:
- Size.MINif flow overlap is preferred
 
 - 
setColorModepublic void setColorMode(ColorMode colorMode) Sets the color mode between sankey elements.- Parameters:
- colorMode- the color mode between sankey elements
 
 - 
getColorModepublic ColorMode getColorMode() Returns the color mode between sankey elements.- Returns:
- the color mode between sankey elements
 
 - 
setColorFrompublic void setColorFrom(IsColor... colors) Sets the starting color of the flow between sankey elements.- Parameters:
- colors- the starting color of the flow between sankey elements
 
 - 
setColorFrompublic void setColorFrom(String... colors) Sets the starting color of the flow between sankey elements.- Parameters:
- colors- the starting color of the flow between sankey elements
 
 - 
getColorFromAsStringpublic List<String> getColorFromAsString() Returns the starting color of the flow between sankey elements.- Returns:
- list of the starting color of the flow between sankey elements
 
 - 
getColorFrompublic List<IsColor> getColorFrom() Returns the starting color of the flow between sankey elements.- Returns:
- list of the starting color of the flow between sankey elements
 
 - 
setColorTopublic void setColorTo(IsColor... colors) Sets the ending color of the flow between sankey elements.- Parameters:
- colors- the ending color of the flow between sankey elements
 
 - 
setColorTopublic void setColorTo(String... colors) Sets the ending color of the flow between sankey elements.- Parameters:
- colors- the ending color of the flow between sankey elements
 
 - 
getColorToAsStringpublic List<String> getColorToAsString() Returns the ending color of the flow between sankey elements.- Returns:
- list of the ending color of the flow between sankey elements
 
 - 
getColorTopublic List<IsColor> getColorTo() Returns the ending color of the flow between sankey elements.- Returns:
- list of the ending color of the flow between sankey elements
 
 - 
setHoverColorFrompublic void setHoverColorFrom(IsColor... colors) Sets the starting color of the flow between sankey elements, when hovered.- Parameters:
- colors- the starting color of the flow between sankey elements, when hovered
 
 - 
setHoverColorFrompublic void setHoverColorFrom(String... colors) Sets the starting color of the flow between sankey elements, when hovered.- Parameters:
- colors- the starting color of the flow between sankey elements, when hovered
 
 - 
getHoverColorFromAsStringpublic List<String> getHoverColorFromAsString() Returns the starting color of the flow between sankey elements, when hovered.- Returns:
- list of the starting color of the flow between sankey elements, when hovered
 
 - 
getHoverColorFrompublic List<IsColor> getHoverColorFrom() Returns the starting color of the flow between sankey elements, when hovered.- Returns:
- list of the starting color of the flow between sankey elements, when hovered
 
 - 
setHoverColorTopublic void setHoverColorTo(IsColor... colors) Sets the ending color of the flow between sankey elements, when hovered.- Parameters:
- colors- the ending color of the flow between sankey elements, when hovered
 
 - 
setHoverColorTopublic void setHoverColorTo(String... colors) Sets the ending color of the flow between sankey elements, when hovered.- Parameters:
- colors- the ending color of the flow between sankey elements, when hovered
 
 - 
getHoverColorToAsStringpublic List<String> getHoverColorToAsString() Returns the ending color of the flow between sankey elements, when hovered.- Returns:
- list of the ending color of the flow between sankey elements, when hovered
 
 - 
getHoverColorTopublic List<IsColor> getHoverColorTo() Returns the ending color of the flow between sankey elements, when hovered.- Returns:
- list of the ending color of the flow between sankey elements, when hovered
 
 - 
setBorderColorpublic void setBorderColor(IsColor borderColor) Sets the border color of the sankey elements.- Parameters:
- borderColor- the border color of the sankey elements
 
 - 
setBorderColorpublic void setBorderColor(String borderColor) Sets the border color of the sankey elements.- Parameters:
- borderColor- the border color of the sankey elements
 
 - 
getBorderColorAsStringpublic String getBorderColorAsString() Returns the border color of the sankey elements.- Returns:
- the border color of the sankey elements
 
 - 
getBorderColorpublic IsColor getBorderColor() Returns the border color of the sankey elements.- Returns:
- list of the border color of the sankey elements
 
 - 
setColorpublic void setColor(IsColor color) Sets the font color of the sankey elements.- Parameters:
- color- the font color of the sankey elements
 
 - 
setColorpublic void setColor(String color) Sets the font color of the sankey elements.- Parameters:
- color- the font color of the sankey elements
 
 - 
getColorAsStringpublic String getColorAsString() Returns the font color of the sankey elements.- Returns:
- the font color of the sankey elements
 
 - 
getColorpublic IsColor getColor() Returns the font color of the sankey elements.- Returns:
- the font color of the sankey elements
 
 - 
setBorderWidthpublic void setBorderWidth(int borderWidth) Sets the width of the border in pixels of sankey elements.- Parameters:
- borderWidth- the width of the border in pixels of sankey elements
 
 - 
getBorderWidthpublic int getBorderWidth() Returns the width of the border in pixels of sankey elements.- Returns:
- the width of the border in pixels of sankey elements
 
 - 
setNodeWidthpublic void setNodeWidth(int nodeWidth) Sets the width of sankey elements.- Parameters:
- nodeWidth- the width of sankey elements
 
 - 
getNodeWidthpublic int getNodeWidth() Returns the width of sankey elements.- Returns:
- the width of sankey elements
 
 - 
setPaddingpublic void setPadding(double padding) Sets the padding between the top of the node and the first label to draw, when multiple lines for labels are set, in pixels.- Parameters:
- padding- the padding between the top of the node and the first label to draw, when multiple lines for labels are set, in pixels
 
 - 
getPaddingpublic double getPadding() Returns the padding between the top of the node and the first label to draw, when multiple lines for labels are set, in pixels.- Returns:
- the padding between the top of the node and the first label to draw, when multiple lines for labels are set, in pixels.
 
 - 
getColorFromCallbackpublic ColorCallback<DatasetContext> getColorFromCallback() Returns the color "from" callback, if set, otherwisenull.- Returns:
- the color "from" callback, if set, otherwise null.
 
 - 
setColorFrompublic void setColorFrom(ColorCallback<DatasetContext> colorCallback) Sets the color "from" callback.- Parameters:
- colorCallback- the color "from" callback.
 
 - 
setColorFrompublic void setColorFrom(NativeCallback colorCallback) Sets the color "from" callback.- Parameters:
- colorCallback- the color "from" callback.
 
 - 
getColorToCallbackpublic ColorCallback<DatasetContext> getColorToCallback() Returns the color "to" callback, if set, otherwisenull.- Returns:
- the color "to" callback, if set, otherwise null.
 
 - 
setColorTopublic void setColorTo(ColorCallback<DatasetContext> colorCallback) Sets the color "to" callback.- Parameters:
- colorCallback- the color "to" callback.
 
 - 
setColorTopublic void setColorTo(NativeCallback colorCallback) Sets the color "to" callback.- Parameters:
- colorCallback- the color "to" callback.
 
 - 
getHoverColorFromCallbackpublic ColorCallback<DatasetContext> getHoverColorFromCallback() Returns the color "from" callback when hovered, if set, otherwisenull.- Returns:
- the color "from" callback when hovered, if set, otherwise null.
 
 - 
setHoverColorFrompublic void setHoverColorFrom(ColorCallback<DatasetContext> colorCallback) Sets the color "from" callback when hovered.- Parameters:
- colorCallback- the color "from" callback when hovered.
 
 - 
setHoverColorFrompublic void setHoverColorFrom(NativeCallback colorCallback) Sets the color "from" callback when hovered.- Parameters:
- colorCallback- the color "from" callback when hovered.
 
 - 
getHoverColorToCallbackpublic ColorCallback<DatasetContext> getHoverColorToCallback() Returns the color "to" callback when hovered, if set, otherwisenull.- Returns:
- the color "to" callback when hovered, if set, otherwise null.
 
 - 
setHoverColorTopublic void setHoverColorTo(ColorCallback<DatasetContext> colorCallback) Sets the color "to" callback when hovered.- Parameters:
- colorCallback- the color "to" callback when hovered.
 
 - 
setHoverColorTopublic void setHoverColorTo(NativeCallback colorCallback) Sets the color "to" callback when hovered.- Parameters:
- colorCallback- the color "to" callback when hovered.
 
 - 
getColorModeCallbackpublic ColorModeCallback getColorModeCallback() Returns the color mode callback, if set, otherwisenull.- Returns:
- the color mode callback, if set, otherwise null.
 
 - 
setColorModepublic void setColorMode(ColorModeCallback colorModeCallback) Sets the color mode callback.- Parameters:
- colorModeCallback- the color mode callback.
 
 - 
setColorModepublic void setColorMode(NativeCallback colorModeCallback) Sets the color mode callback.- Parameters:
- colorModeCallback- the color mode callback.
 
 - 
getSizeCallbackpublic SizeCallback getSizeCallback() Returns the size callback, if set, otherwisenull.- Returns:
- the size callback, if set, otherwise null.
 
 - 
setSizepublic void setSize(SizeCallback sizeCallback) Sets the size callback.- Parameters:
- sizeCallback- the size callback.
 
 - 
setSizepublic void setSize(NativeCallback sizeCallback) Sets the size callback.- Parameters:
- sizeCallback- the size callback.
 
 - 
getPaddingCallbackpublic PaddingCallback getPaddingCallback() Returns the padding callback, if set, otherwisenull.- Returns:
- the padding callback, if set, otherwise null.
 
 - 
setPaddingpublic void setPadding(PaddingCallback paddingCallback) Sets the padding callback.- Parameters:
- paddingCallback- the padding callback.
 
 - 
setPaddingpublic void setPadding(NativeCallback paddingCallback) Sets the padding callback.- Parameters:
- paddingCallback- the padding callback.
 
 - 
getFontCallbackpublic FontCallback<DatasetContext> getFontCallback() Returns the font callback, if set, otherwisenull.- Returns:
- the font callback, if set, otherwise null.
 
 - 
setFontpublic void setFont(FontCallback<DatasetContext> fontCallback) Sets the font callback.- Parameters:
- fontCallback- the font callback.
 
 - 
setFontpublic void setFont(NativeCallback fontCallback) Sets the font callback.- Parameters:
- fontCallback- the font callback.
 
 - 
setParsingpublic void setParsing(boolean parsing) Sets how to parse the data set.
 This is ignored because it must alwasy set totrue.- Overrides:
- setParsingin class- Dataset
- Parameters:
- parsing- how to parse the data set.
 This is ignored because it must alwasy set to- true.
 
 - 
setClippublic void setClip(boolean clip) Sets how to clip relative to the chart area.
 Iffalseallows overflow, otherwisetrueclips that many pixels inside the chart area.
 - 
setClippublic void setClip(double clip) Sets how to clip relative to the chart area.
 This is ignored in order to disable clipping.
 - 
setClippublic void setClip(Clip clip) Sets how to clip relative to the chart area.
 This is ignored in order to disable clipping.
 - 
getClippublic double getClip() Returns alwaysUndefined.DOUBLEbecause is always disabled.- Overrides:
- getClipin class- Dataset
- Returns:
- returns always Undefined.DOUBLEbecause is always disabled.
 
 - 
getClipAsObjectpublic Clip getClipAsObject() Returns alwaysClipinstance withUndefined.DOUBLEbecause is always disabled.- Overrides:
- getClipAsObjectin class- Dataset
- Returns:
- always Clipinstance withUndefined.DOUBLEbecause is always disabled.
 
 - 
setDatapublic void setData(double... values) Throws an exception because not available.
 
- 
 
-