public abstract class HoverDataset extends HoverFlexDataset
Dataset.CanvasObjectProperty, Dataset.CommonProperty
DEFAULT_HIDDEN, DEFAULT_NORMALIZED, DEFAULT_PARSING
Modifier | Constructor and Description |
---|---|
protected |
HoverDataset(Type type,
IsDefaultOptions defaultValues,
boolean hidden)
Creates the data set using a default and chart type related to the data set.
|
Modifier and Type | Method and Description |
---|---|
WidthCallback<DatasetContext> |
getBorderWidthCallback()
Returns the border width callback, if set, otherwise
null . |
protected ArrayString |
getColors(Key key,
String defaultvalue)
Returns an array of colors as string.
|
List<Gradient> |
getHoverBackgroundColorAsGradient()
Returns the fill gradients of the arcs in the data set when hovered.
If property is missing or not a gradient, returns an empty list. |
List<Pattern> |
getHoverBackgroundColorAsPatterns()
Returns the fill patterns of the arcs in the data set when hovered.
If property is missing or not a pattern, returns an empty list. |
List<String> |
getHoverBackgroundColorAsString()
Returns the fill color of the arcs when hovered as string.
If property is missing or not a color, returns an empty list. |
List<Gradient> |
getHoverBorderColorAsGradient()
Returns the stroke gradients of the arcs in the data set when hovered.
If property is missing or not a pattern, returns an empty list. |
List<String> |
getHoverBorderColorAsString()
Returns the stroke color of the arcs when hovered.
|
List<Integer> |
getHoverBorderWidth()
Returns the stroke width of the arcs when hovered.
|
WidthCallback<DatasetContext> |
getHoverBorderWidthCallback()
Returns the hover border width callback, if set, otherwise
null . |
protected ArrayInteger |
getWidths(Key key,
int defaultvalue)
Returns an array of widths as integer
|
void |
setBorderWidth(NativeCallback borderWidthCallback)
Sets the border width callback.
|
void |
setBorderWidth(WidthCallback<DatasetContext> borderWidthCallback)
Sets the border width callback.
|
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 arcs in the data set when hovered.
|
void |
setHoverBackgroundColor(IsColor... colors)
Sets the fill color of the arcs when hovered.
|
void |
setHoverBackgroundColor(Pattern... colors)
Sets the fill pattern of the arcs in the data set when hovered.
|
void |
setHoverBackgroundColor(String... colors)
Sets the fill color of the arcs when hovered as string.
|
void |
setHoverBorderColor(Gradient... colors)
Sets the stroke gradient of the arcs in the data set when hovered as gradient.
|
void |
setHoverBorderColor(IsColor... colors)
Sets the stroke color of the arcs when hovered as string.
|
void |
setHoverBorderColor(String... colors)
Sets the stroke color of the arcs when hovered as string.
|
void |
setHoverBorderWidth(WidthCallback<DatasetContext> hoverBorderWidthCallback)
Sets the hover border width callback.
|
protected void |
setWidths(Key key,
int... widths)
Sets a width property in the dataset, setting a single value or an array.
|
getBackgroundColor, getBackgroundColorAsGradient, getBackgroundColorAsPatterns, getBackgroundColorAsString, getBorderColor, getBorderColorAsGradient, getBorderColorAsString, getBorderWidth, getHoverBackgroundColor, getHoverBorderColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderColor, setBorderWidth, setHoverBorderWidth
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, setParsing
checkAndAddToParent, 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, setValueOrArrayAndAddToParent
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, 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, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnimation, getAnimations, getTransitions, isAnimationEnabled, setAnimationEnabled
extractScope
protected HoverDataset(Type type, IsDefaultOptions defaultValues, boolean hidden)
type
- chart type related to the data setdefaultValues
- default optionshidden
- if true
, it will be initially hidden.protected void setColors(Key key, String... colors)
HoverFlexDataset
setColors
in class HoverFlexDataset
key
- property keycolors
- colors value to be setprotected void setColors(Key key, IsColor... colors)
HoverFlexDataset
setColors
in class HoverFlexDataset
key
- property keycolors
- colors value to be setprotected ArrayString getColors(Key key, String defaultvalue)
HoverFlexDataset
getColors
in class HoverFlexDataset
key
- property keydefaultvalue
- default value if key does not existprotected void setWidths(Key key, int... widths)
HoverFlexDataset
setWidths
in class HoverFlexDataset
key
- property keywidths
- widths value to be setprotected ArrayInteger getWidths(Key key, int defaultvalue)
HoverFlexDataset
getWidths
in class HoverFlexDataset
key
- property keydefaultvalue
- default value if key does not existpublic WidthCallback<DatasetContext> getBorderWidthCallback()
null
.null
public void setBorderWidth(WidthCallback<DatasetContext> borderWidthCallback)
borderWidthCallback
- the border width callback to setpublic void setBorderWidth(NativeCallback borderWidthCallback)
borderWidthCallback
- the border width callback to setpublic void setHoverBackgroundColor(IsColor... colors)
setHoverBackgroundColor
in class HoverFlexDataset
colors
- the fill color of the arcs when hoveredpublic void setHoverBackgroundColor(String... colors)
setHoverBackgroundColor
in class HoverFlexDataset
colors
- the fill color of the arcs when hovered as stringpublic void setHoverBackgroundColor(Pattern... colors)
setHoverBackgroundColor
in class HoverFlexDataset
colors
- the fill pattern of the arcs in the data set when hovered.public void setHoverBackgroundColor(Gradient... colors)
setHoverBackgroundColor
in class HoverFlexDataset
colors
- the fill gradient of the arcs in the data set when hovered.public List<String> getHoverBackgroundColorAsString()
getHoverBackgroundColorAsString
in class HoverFlexDataset
public List<Pattern> getHoverBackgroundColorAsPatterns()
getHoverBackgroundColorAsPatterns
in class HoverFlexDataset
public List<Gradient> getHoverBackgroundColorAsGradient()
getHoverBackgroundColorAsGradient
in class HoverFlexDataset
public void setHoverBorderColor(IsColor... colors)
setHoverBorderColor
in class HoverFlexDataset
colors
- the stroke color of the arcs when hovered as stringpublic void setHoverBorderColor(String... colors)
setHoverBorderColor
in class HoverFlexDataset
colors
- the stroke color of the arcs when hovered as stringpublic void setHoverBorderColor(Gradient... colors)
setHoverBorderColor
in class HoverFlexDataset
colors
- the stroke gradient of the arcs in the data set when hovered as gradient.public List<String> getHoverBorderColorAsString()
getHoverBorderColorAsString
in class HoverFlexDataset
public List<Gradient> getHoverBorderColorAsGradient()
getHoverBorderColorAsGradient
in class HoverFlexDataset
public List<Integer> getHoverBorderWidth()
getHoverBorderWidth
in class HoverFlexDataset
public WidthCallback<DatasetContext> getHoverBorderWidthCallback()
null
.null
.public void setHoverBorderWidth(WidthCallback<DatasetContext> hoverBorderWidthCallback)
hoverBorderWidthCallback
- the hover border width callback to set