public class DoughnutDataset extends PieDataset
Constructor and Description |
---|
DoughnutDataset()
Creates a dataset.
It uses the global options has default. |
DoughnutDataset(IsDefaultOptions defaultValues)
Creates the dataset using a default.
|
Modifier and Type | Method and Description |
---|---|
List<IsColor> |
getBackgroundColor()
Returns the fill color of the arcs in the dataset.
|
List<Gradient> |
getBackgroundColorAsGradient()
Returns the fill gradient of the arcs in the dataset.
|
List<Pattern> |
getBackgroundColorAsPatterns()
Returns the fill patters of the arcs in the dataset.
|
List<String> |
getBackgroundColorAsString()
Returns the fill color of the arcs in the dataset as string.
|
List<IsColor> |
getBorderColor()
Returns the border color of the arcs in the dataset.
|
List<Gradient> |
getBorderColorAsGradient()
Returns the border gradient of the arcs in the dataset as string.
|
List<String> |
getBorderColorAsString()
Returns the border color of the arcs in the dataset as string.
|
List<Integer> |
getBorderWidth()
Returns the border width of the arcs in the dataset.
|
List<IsColor> |
getHoverBackgroundColor()
Returns the fill color of the arcs when hovered.
|
List<Gradient> |
getHoverBackgroundColorAsGradient()
Returns the fill gradients of the arcs in the dataset when hovered.
|
List<Pattern> |
getHoverBackgroundColorAsPatterns()
Returns the fill patterns of the arcs in the dataset when hovered.
|
List<String> |
getHoverBackgroundColorAsString()
Returns the fill color of the arcs when hovered as string.
|
List<IsColor> |
getHoverBorderColor()
Returns the stroke color of the arcs when hovered.
|
List<Gradient> |
getHoverBorderColorAsGradient()
Returns the stroke gradients of the arcs in the dataset when hovered.
|
List<String> |
getHoverBorderColorAsString()
Returns the stroke color of the arcs when hovered.
|
List<Integer> |
getHoverBorderWidth()
Returns the stroke width of the arcs when hovered.
|
void |
setBackgroundColor(Gradient... backgroundColor)
Sets the fill gradient of the arcs in the dataset.
|
void |
setBackgroundColor(IsColor... backgroundColor)
Sets the fill color of the arcs in the dataset.
|
void |
setBackgroundColor(Pattern... backgroundColor)
Sets the fill pattern of the arcs in the dataset.
|
void |
setBackgroundColor(String... backgroundColor)
Sets the fill color of the arcs in the dataset.
|
void |
setBorderColor(Gradient... borderColor)
Sets the border gradient of the arcs in the dataset as gradient.
|
void |
setBorderColor(IsColor... borderColor)
Sets the border color of the arcs in the dataset.
|
void |
setBorderColor(String... borderColor)
Sets the border color of the arcs in the dataset as string.
|
void |
setBorderWidth(int... borderWidth)
Sets the border width of the arcs in the dataset.
|
void |
setHoverBackgroundColor(Gradient... colors)
Sets the fill gradient of the arcs in the dataset 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 dataset 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 dataset 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(int... widths)
Sets the stroke width of the arcs when hovered.
|
getData, getData, getDataType, getId, getLabel, getOptions, getType, hasOptions, isHidden, setData, setData, setHidden, setLabel, setOptions, setType
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 DoughnutDataset()
public DoughnutDataset(IsDefaultOptions defaultValues)
defaultValues
- default optionspublic void setBackgroundColor(IsColor... backgroundColor)
backgroundColor
- the fill color of the arcs in the dataset.public void setBackgroundColor(String... backgroundColor)
backgroundColor
- the fill color of the arcs in the dataset.public void setBackgroundColor(Pattern... backgroundColor)
backgroundColor
- the fill pattern of the arcs in the dataset.public void setBackgroundColor(Gradient... backgroundColor)
backgroundColor
- the fill gradient of the arcs in the dataset.public List<String> getBackgroundColorAsString()
public List<IsColor> getBackgroundColor()
public List<Pattern> getBackgroundColorAsPatterns()
public List<Gradient> getBackgroundColorAsGradient()
public void setBorderColor(IsColor... borderColor)
borderColor
- the border color of the arcs in the dataset.public void setBorderColor(String... borderColor)
borderColor
- the border color of the arcs in the dataset as string.public void setBorderColor(Gradient... borderColor)
borderColor
- the border gradient of the arcs in the dataset as gradient.public List<String> getBorderColorAsString()
public List<IsColor> getBorderColor()
public List<Gradient> getBorderColorAsGradient()
public void setBorderWidth(int... borderWidth)
borderWidth
- the border width of the arcs in the dataset.public List<Integer> getBorderWidth()
public void setHoverBackgroundColor(IsColor... colors)
colors
- the fill color of the arcs when hoveredpublic void setHoverBackgroundColor(String... colors)
colors
- the fill color of the arcs when hovered as stringpublic void setHoverBackgroundColor(Pattern... colors)
colors
- the fill pattern of the arcs in the dataset when hovered.public void setHoverBackgroundColor(Gradient... colors)
colors
- the fill gradient of the arcs in the dataset 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 arcs when hovered as string.public void setHoverBorderColor(String... colors)
colors
- the stroke color of the arcs when hovered as string.public void setHoverBorderColor(Gradient... colors)
colors
- the stroke gradient of the arcs in the dataset 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 arcs when hovered.