public abstract class HovingFlexDataset extends Dataset
Dataset.Property
Modifier and Type | Method and Description |
---|---|
protected void |
applyGradient(Key key,
List<CanvasGradient> canvasGradientsList)
Stores the canvas gradients into dataset object by property name passed as key.
|
protected void |
applyPattern(Key key,
List<CanvasPattern> canvasPatternsList)
Stores the canvas patterns into dataset object by property name passed as key.
|
List<IsColor> |
getBackgroundColor()
Returns the fill colors of the elements.
|
List<Gradient> |
getBackgroundColorAsGradient()
Returns the fill gradient of elements.
|
List<Pattern> |
getBackgroundColorAsPatterns()
Returns the fill patters of elements.
|
List<String> |
getBackgroundColorAsString()
Returns the fill colors of the elements.
|
List<IsColor> |
getBorderColor()
Returns the color of the bar border
|
List<Gradient> |
getBorderColorAsGradient()
Returns the gradient of the bar border.
|
List<String> |
getBorderColorAsString()
Returns the color of the bar border
|
List<Integer> |
getBorderWidth()
Returns the stroke width of the bar in pixels.
|
List<IsColor> |
getHoverBackgroundColor()
Returns the fill color of the elements when hovered.
|
List<Gradient> |
getHoverBackgroundColorAsGradient()
Returns the fill gradients of elements when hovered.
|
List<Pattern> |
getHoverBackgroundColorAsPatterns()
Returns the fill patters of elements when hovered.
|
List<String> |
getHoverBackgroundColorAsString()
Returns the fill color of the elements when hovered.
|
List<IsColor> |
getHoverBorderColor()
Returns the stroke color of the elements when hovered
|
List<Gradient> |
getHoverBorderColorAsGradient()
Returns the stroke gradients of the elements when hovered.
|
List<String> |
getHoverBorderColorAsString()
Returns the stroke color of the elements when hovered.
|
List<Integer> |
getHoverBorderWidth()
Returns the stroke width of the elements when hovered.
|
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.
|
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.
|
getBackgroundColorCallback, getBorderColorCallback, getBorderWidthCallback, getData, getData, getDataset, getDataType, getDefaultBackgroundColorAsString, getDefaultBorderColorAsString, getDefaultBorderWidth, getDefaultValues, getId, getLabel, getOptions, getType, hasOptions, isHidden, setBackgroundColor, setBorderColor, setBorderWidth, setData, setData, setHidden, setLabel, setOptions, setType
checkValue, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public 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 hovered.public void setHoverBackgroundColor(Gradient... colors)
colors
- the fill gradient of the elements when hovered.public 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 gradient.public 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.public List<Integer> getHoverBorderWidth()
protected void applyPattern(Key key, List<CanvasPattern> canvasPatternsList)
Dataset
applyPattern
in class Dataset
key
- key property name to use to store canvas patterns into dataset object.canvasPatternsList
- list of canvas patternsprotected void applyGradient(Key key, List<CanvasGradient> canvasGradientsList)
Dataset
applyGradient
in class Dataset
key
- key property name to use to store canvas gradients into dataset object.canvasGradientsList
- list of canvas gradients