Package org.pepstock.charba.client.data
Class HoverFlexDataset
- 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.data.HoverFlexDataset
 
 
 
 
- 
- All Implemented Interfaces:
- HasCallbackScope,- HasDataset,- IsDefaultAnimationContainer,- IsDefaultAnimationTransition,- HasAnimationOptions
 - Direct Known Subclasses:
- BarDataset,- HoverDataset,- MatrixDataset,- TreeMapDataset
 
 public abstract class HoverFlexDataset extends Dataset This dataset is managing some common properties related to background and border colors where every property can be set as a single value or an array.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.pepstock.charba.client.data.DatasetDataset.CanvasObjectProperty, Dataset.CommonProperty
 
- 
 - 
Field Summary- 
Fields inherited from class org.pepstock.charba.client.data.DatasetDEFAULT_HIDDEN, DEFAULT_NORMALIZED, DEFAULT_PARSING
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedHoverFlexDataset(Type type, IsDefaultOptions defaultValues, boolean hidden)Creates the dataset using a default and chart type related to the dataset.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description List<IsColor>getBackgroundColor()Returns the fill colors of the elements.
 If property is missing or not a color, returns an empty list.List<Gradient>getBackgroundColorAsGradient()Returns the fill gradient of elements.
 If property is missing or not a gradient, returns an empty list.List<Pattern>getBackgroundColorAsPatterns()Returns the fill patters of elements.
 If property is missing or not a pattern, returns an empty list.List<String>getBackgroundColorAsString()Returns the fill colors of the elements.
 If property is missing or not a color, returns an empty list.List<IsColor>getBorderColor()Returns the color of the bar border.List<Gradient>getBorderColorAsGradient()Returns the gradient of the bar border.
 If property is missing or not a gradient, returns an empty list.List<String>getBorderColorAsString()Returns the color of the bar border.List<Integer>getBorderWidth()Returns the stroke width of the bar in pixels.
 If a callback has been set, returns an empty list.protected ArrayStringgetColors(Key key, String defaultvalue)Returns an array of colors as string.List<IsColor>getHoverBackgroundColor()Returns the fill color of the elements when hovered.
 If property is missing or not a color, returns an empty list.List<Gradient>getHoverBackgroundColorAsGradient()Returns the fill gradients of elements when hovered.
 If property is missing or not a gradient, returns an empty list.List<Pattern>getHoverBackgroundColorAsPatterns()Returns the fill patters of elements when hovered.
 If property is missing or not a pattern, returns an empty list.List<String>getHoverBackgroundColorAsString()Returns the fill color of the elements when hovered.
 If property is missing or not a color, returns an empty list.List<IsColor>getHoverBorderColor()Returns the stroke color of the elements when hovered.List<Gradient>getHoverBorderColorAsGradient()Returns the stroke gradients of the elements when hovered.
 If property is missing or not a pattern, returns an empty list.List<String>getHoverBorderColorAsString()Returns the stroke color of the elements when hovered.List<Integer>getHoverBorderWidth()Returns the stroke width of the elements when hovered.protected ArrayIntegergetWidths(Key key, int defaultvalue)Returns an array of widths as integervoidsetBackgroundColor(String... backgroundColor)Sets the fill colors of the elements.voidsetBackgroundColor(Gradient... backgroundColor)Sets the fill gradient of the elements.voidsetBackgroundColor(IsColor... backgroundColor)Sets the fill colors of the elements.voidsetBackgroundColor(Pattern... backgroundColor)Sets the fill pattern of the elements.voidsetBorderColor(String... borderColor)Sets the color of the bar border.voidsetBorderColor(Gradient... borderColor)Sets the gradient of the bar border as gradient.voidsetBorderColor(IsColor... borderColor)Sets the color of the bar border.voidsetBorderWidth(int... borderWidth)Sets the stroke width of the bar in pixels.protected voidsetColors(Key key, String... colors)Sets a color property in the dataset, setting a single value or an array.protected voidsetColors(Key key, IsColor... colors)Sets a color property in the dataset, setting a single value or an array.voidsetHoverBackgroundColor(String... colors)Sets the fill color of the elements when hovered.voidsetHoverBackgroundColor(Gradient... colors)Sets the fill gradient of the elements when hovered.voidsetHoverBackgroundColor(IsColor... colors)Sets the fill color of the elements when hovered.voidsetHoverBackgroundColor(Pattern... colors)Sets the fill pattern of the elements when hovered.voidsetHoverBorderColor(String... colors)Sets the stroke color of the elements when hovered.voidsetHoverBorderColor(Gradient... colors)Sets the stroke gradient of elements when hovered as gradient.voidsetHoverBorderColor(IsColor... colors)Sets the stroke color of the elements when hovered.voidsetHoverBorderWidth(int... widths)Sets the stroke width of the elements when hovered.protected voidsetWidths(Key key, int... widths)Sets a width property in the dataset, setting a single value or an array.- 
Methods inherited from class org.pepstock.charba.client.data.DatasetcreateContext, getAnimationContainer, getBackgroundColorCallback, getBorderColorCallback, getClip, getClipAsObject, getData, 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, setClip, setClip, setClip, setData, setData, setHidden, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setLabel, setNormalized, setOptions, setOptions, setParsing
 - 
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, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
 - 
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainercheckAndGetColor, 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, 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, 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
 
- 
 
- 
- 
- 
Constructor Detail- 
HoverFlexDatasetprotected HoverFlexDataset(Type type, IsDefaultOptions defaultValues, boolean hidden) Creates the dataset using a default and chart type related to the dataset.- Parameters:
- type- chart type related to the dataset
- defaultValues- default options
- hidden- if- true, it will be initially hidden.
 
 
- 
 - 
Method Detail- 
setColorsprotected void setColors(Key key, String... colors) Sets a color property in the dataset, setting a single value or an array.- Parameters:
- key- property key
- colors- colors value to be set
 
 - 
setColorsprotected void setColors(Key key, IsColor... colors) Sets a color property in the dataset, setting a single value or an array.- Parameters:
- key- property key
- colors- colors value to be set
 
 - 
getColorsprotected ArrayString getColors(Key key, String defaultvalue) Returns an array of colors as string.- Parameters:
- key- property key
- defaultvalue- default value if key does not exist
- Returns:
- an array of colors
 
 - 
setWidthsprotected void setWidths(Key key, int... widths) Sets a width property in the dataset, setting a single value or an array.- Parameters:
- key- property key
- widths- widths value to be set
 
 - 
getWidthsprotected ArrayInteger getWidths(Key key, int defaultvalue) Returns an array of widths as integer- Parameters:
- key- property key
- defaultvalue- default value if key does not exist
- Returns:
- an array of widths
 
 - 
setBackgroundColorpublic void setBackgroundColor(IsColor... backgroundColor) Sets the fill colors of the elements.- Parameters:
- backgroundColor- the fill colors of the elements.
 
 - 
setBackgroundColorpublic void setBackgroundColor(String... backgroundColor) Sets the fill colors of the elements.- Parameters:
- backgroundColor- the fill colors of the elements.
 
 - 
setBackgroundColorpublic void setBackgroundColor(Pattern... backgroundColor) Sets the fill pattern of the elements.- Parameters:
- backgroundColor- the fill pattern of element.
 
 - 
setBackgroundColorpublic void setBackgroundColor(Gradient... backgroundColor) Sets the fill gradient of the elements.- Parameters:
- backgroundColor- the fill gradient of the elements.
 
 - 
getBackgroundColorAsStringpublic List<String> getBackgroundColorAsString() Returns the fill colors of the elements.
 If property is missing or not a color, returns an empty list.- Returns:
- list of the fill colors of the elements.
 If property is missing or not a color, returns an empty list.
 
 - 
getBackgroundColorpublic List<IsColor> getBackgroundColor() Returns the fill colors of the elements.
 If property is missing or not a color, returns an empty list.- Returns:
- list of the fill colors of the elements.
 If property is missing or not a color, returns an empty list.
 
 - 
getBackgroundColorAsPatternspublic List<Pattern> getBackgroundColorAsPatterns() Returns the fill patters of elements.
 If property is missing or not a pattern, returns an empty list.- Returns:
- list of the fill patterns of elements.
 If property is missing or not a pattern, returns an empty list.
 
 - 
getBackgroundColorAsGradientpublic List<Gradient> getBackgroundColorAsGradient() Returns the fill gradient of elements.
 If property is missing or not a gradient, returns an empty list.- Returns:
- the fill gradient of elements.
 If property is missing or not a gradient, returns an empty list.
 
 - 
setBorderColorpublic void setBorderColor(IsColor... borderColor) Sets the color of the bar border.- Parameters:
- borderColor- the color of the bar border
 
 - 
setBorderColorpublic void setBorderColor(String... borderColor) Sets the color of the bar border.- Parameters:
- borderColor- the color of the bar border
 
 - 
setBorderColorpublic void setBorderColor(Gradient... borderColor) Sets the gradient of the bar border as gradient.- Parameters:
- borderColor- the gradient of the bar border as gradient.
 
 - 
getBorderColorAsStringpublic List<String> getBorderColorAsString() Returns the color of the bar border.- Returns:
- list of the color of the bar border
 
 - 
getBorderColorpublic List<IsColor> getBorderColor() Returns the color of the bar border.- Returns:
- list of the color of the bar border
 
 - 
getBorderColorAsGradientpublic List<Gradient> getBorderColorAsGradient() Returns the gradient of the bar border.
 If property is missing or not a gradient, returns an empty list.- Returns:
- the gradient of the bar border.
 If property is missing or not a gradient, returns an empty list.
 
 - 
setBorderWidthpublic void setBorderWidth(int... borderWidth) Sets the stroke width of the bar in pixels.- Parameters:
- borderWidth- the stroke width of the bar in pixels.
 
 - 
getBorderWidthpublic List<Integer> getBorderWidth() Returns the stroke width of the bar in pixels.
 If a callback has been set, returns an empty list.- Returns:
- list of the stroke width of the bar in pixels.
 If a callback has been set, returns an empty list.
 
 - 
setHoverBackgroundColorpublic void setHoverBackgroundColor(IsColor... colors) Sets the fill color of the elements when hovered.- Parameters:
- colors- the fill color of the elements when hovered
 
 - 
setHoverBackgroundColorpublic void setHoverBackgroundColor(String... colors) Sets the fill color of the elements when hovered.- Parameters:
- colors- the fill color of the elements when hovered
 
 - 
setHoverBackgroundColorpublic void setHoverBackgroundColor(Pattern... colors) Sets the fill pattern of the elements when hovered.- Parameters:
- colors- the fill pattern of element when hovered
 
 - 
setHoverBackgroundColorpublic void setHoverBackgroundColor(Gradient... colors) Sets the fill gradient of the elements when hovered.- Parameters:
- colors- the fill gradient of the elements when hovered
 
 - 
getHoverBackgroundColorAsStringpublic List<String> getHoverBackgroundColorAsString() Returns the fill color of the elements when hovered.
 If property is missing or not a color, returns an empty list.- Returns:
- list of the fill color of the elements when hovered.
 If property is missing or not a color, returns an empty list.
 
 - 
getHoverBackgroundColorpublic List<IsColor> getHoverBackgroundColor() Returns the fill color of the elements when hovered.
 If property is missing or not a color, returns an empty list.- Returns:
- list of the fill color of the elements when hovered.
 If property is missing or not a color, returns an empty list.
 
 - 
getHoverBackgroundColorAsPatternspublic List<Pattern> getHoverBackgroundColorAsPatterns() Returns the fill patters of elements when hovered.
 If property is missing or not a pattern, returns an empty list.- Returns:
- list of the fill patterns of elements when hovered.
 If property is missing or not a pattern, returns an empty list.
 
 - 
getHoverBackgroundColorAsGradientpublic List<Gradient> getHoverBackgroundColorAsGradient() Returns the fill gradients of elements when hovered.
 If property is missing or not a gradient, returns an empty list.- Returns:
- list of the fill gradients of elements when hovered.
 If property is missing or not a gradient, returns an empty list.
 
 - 
setHoverBorderColorpublic void setHoverBorderColor(IsColor... colors) Sets the stroke color of the elements when hovered.- Parameters:
- colors- the stroke color of the elements when hovered
 
 - 
setHoverBorderColorpublic void setHoverBorderColor(String... colors) Sets the stroke color of the elements when hovered.- Parameters:
- colors- the stroke color of the elements when hovered
 
 - 
setHoverBorderColorpublic void setHoverBorderColor(Gradient... colors) Sets the stroke gradient of elements when hovered as gradient.- Parameters:
- colors- the stroke gradient of elements when hovered as gradient
 
 - 
getHoverBorderColorAsStringpublic List<String> getHoverBorderColorAsString() Returns the stroke color of the elements when hovered.- Returns:
- list of the stroke color of the elements when hovered
 
 - 
getHoverBorderColorpublic List<IsColor> getHoverBorderColor() Returns the stroke color of the elements when hovered.- Returns:
- list of the stroke color of the elements when hovered
 
 - 
getHoverBorderColorAsGradientpublic List<Gradient> getHoverBorderColorAsGradient() Returns the stroke gradients of the elements when hovered.
 If property is missing or not a pattern, returns an empty list.- Returns:
- list of the stroke gradients of the elements when hovered.
 If property is missing or not a pattern, returns an empty list
 
 - 
setHoverBorderWidthpublic void setHoverBorderWidth(int... widths) Sets the stroke width of the elements when hovered.- Parameters:
- widths- the stroke width of the elements when hovered
 
 
- 
 
-