public abstract class HoverFlexDataset extends Dataset
Dataset.CanvasObjectProperty, Dataset.CommonPropertyDEFAULT_HIDDEN, DEFAULT_NORMALIZED, DEFAULT_PARSING| Modifier | Constructor and Description |
|---|---|
protected |
HoverFlexDataset(Type type,
IsDefaultOptions defaultValues,
boolean hidden)
Creates the dataset using a default and chart type related to the dataset.
|
| Modifier and Type | Method and 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 ArrayString |
getColors(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 ArrayInteger |
getWidths(Key key,
int defaultvalue)
Returns an array of widths as integer
|
void |
setBackgroundColor(Gradient... backgroundColor)
Sets the fill gradient of the elements.
|
void |
setBackgroundColor(IsColor... backgroundColor)
Sets the fill colors of the elements.
|
void |
setBackgroundColor(Pattern... backgroundColor)
Sets the fill pattern of the elements.
|
void |
setBackgroundColor(String... backgroundColor)
Sets the fill colors of the elements.
|
void |
setBorderColor(Gradient... borderColor)
Sets the gradient of the bar border as gradient.
|
void |
setBorderColor(IsColor... borderColor)
Sets the color of the bar border.
|
void |
setBorderColor(String... borderColor)
Sets the color of the bar border.
|
void |
setBorderWidth(int... borderWidth)
Sets the stroke width of the bar in pixels.
|
protected void |
setColors(Key key,
IsColor... colors)
Sets a color property in the dataset, setting a single value or an array.
|
protected void |
setColors(Key key,
String... colors)
Sets a color property in the dataset, setting a single value or an array.
|
void |
setHoverBackgroundColor(Gradient... colors)
Sets the fill gradient of the elements when hovered.
|
void |
setHoverBackgroundColor(IsColor... colors)
Sets the fill color of the elements when hovered.
|
void |
setHoverBackgroundColor(Pattern... colors)
Sets the fill pattern of the elements when hovered.
|
void |
setHoverBackgroundColor(String... colors)
Sets the fill color of the elements when hovered.
|
void |
setHoverBorderColor(Gradient... colors)
Sets the stroke gradient of elements when hovered as gradient.
|
void |
setHoverBorderColor(IsColor... colors)
Sets the stroke color of the elements when hovered.
|
void |
setHoverBorderColor(String... colors)
Sets the stroke color of the elements when hovered.
|
void |
setHoverBorderWidth(int... widths)
Sets the stroke width of the elements when hovered.
|
protected void |
setWidths(Key key,
int... widths)
Sets a width property in the dataset, setting a single value or an array.
|
createContext, 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, setParsingcheckAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, 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, setValueOrArrayAndAddToParentcheckDefaultValuesArgument, 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, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnimation, getAnimations, getTransitions, isAnimationEnabled, setAnimationEnabledextractScopeprotected HoverFlexDataset(Type type, IsDefaultOptions defaultValues, boolean hidden)
type - chart type related to the datasetdefaultValues - default optionshidden - if true, it will be initially hidden.protected void setColors(Key key, String... colors)
key - property keycolors - colors value to be setprotected void setColors(Key key, IsColor... colors)
key - property keycolors - colors value to be setprotected ArrayString getColors(Key key, String defaultvalue)
key - property keydefaultvalue - default value if key does not existprotected void setWidths(Key key, int... widths)
key - property keywidths - widths value to be setprotected ArrayInteger getWidths(Key key, int defaultvalue)
key - property keydefaultvalue - default value if key does not existpublic void setBackgroundColor(IsColor... backgroundColor)
backgroundColor - the fill colors of the elements.public void setBackgroundColor(String... backgroundColor)
backgroundColor - the fill colors of the elements.public void setBackgroundColor(Pattern... backgroundColor)
backgroundColor - the fill pattern of element.public void setBackgroundColor(Gradient... backgroundColor)
backgroundColor - the fill gradient of the elements.public List<String> getBackgroundColorAsString()
public List<IsColor> getBackgroundColor()
public List<Pattern> getBackgroundColorAsPatterns()
public List<Gradient> getBackgroundColorAsGradient()
public void setBorderColor(IsColor... borderColor)
borderColor - the color of the bar borderpublic void setBorderColor(String... borderColor)
borderColor - the color of the bar borderpublic void setBorderColor(Gradient... borderColor)
borderColor - the gradient of the bar border as gradient.public List<String> getBorderColorAsString()
public List<IsColor> getBorderColor()
public List<Gradient> getBorderColorAsGradient()
public void setBorderWidth(int... borderWidth)
borderWidth - the stroke width of the bar in pixels.public List<Integer> getBorderWidth()
public void setHoverBackgroundColor(IsColor... colors)
colors - the fill color of the elements when hoveredpublic void setHoverBackgroundColor(String... colors)
colors - the fill color of the elements when hoveredpublic void setHoverBackgroundColor(Pattern... colors)
colors - the fill pattern of element when hoveredpublic void setHoverBackgroundColor(Gradient... colors)
colors - the fill gradient of the elements when hoveredpublic List<String> getHoverBackgroundColorAsString()
public List<IsColor> getHoverBackgroundColor()
public List<Pattern> getHoverBackgroundColorAsPatterns()
public List<Gradient> getHoverBackgroundColorAsGradient()
public void setHoverBorderColor(IsColor... colors)
colors - the stroke color of the elements when hoveredpublic void setHoverBorderColor(String... colors)
colors - the stroke color of the elements when hoveredpublic void setHoverBorderColor(Gradient... colors)
colors - the stroke gradient of elements when hovered as gradientpublic List<String> getHoverBorderColorAsString()
public List<IsColor> getHoverBorderColor()
public List<Gradient> getHoverBorderColorAsGradient()
public void setHoverBorderWidth(int... widths)
widths - the stroke width of the elements when hovered