public class MeterDataset extends DoughnutDataset
MINIMUM_VALUE).setValue(double)) method instead of
Dataset.setData(double...)) one.| Modifier and Type | Field and Description |
|---|---|
static IsColor |
DEFAULT_EMPTY_VALUE_COLOR
Default empty color
|
static double |
DEFAULT_MAXIMUM_VALUE
Default maximum value is 100.0
|
static IsColor |
DEFAULT_VALUE_COLOR
Default value color
|
static double |
MINIMUM_VALUE
Minimum value is 0.0
|
| Constructor and Description |
|---|
MeterDataset(double max)
Creates a dataset setting the maximum value of dataset.
|
MeterDataset(double max,
IsDefaultOptions defaultValues)
Creates a dataset setting the maximum value of dataset and defaults value.
|
| 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.
|
double |
getMax()
Returns the maximum value of chart.
|
double |
getValue()
Returns the value of the chart.
|
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 |
setData(double... values)
Sets the data property of a dataset for a chart is specified as an array of numbers.
|
void |
setData(List<Double> values)
Sets the data property of a dataset for a chart is specified as an array of numbers.
|
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.
|
void |
setValue(double value) |
getData, getData, getDataType, getId, getLabel, getOptions, getType, hasOptions, isHidden, setHidden, setLabel, setOptions, setTypegetArrayValue, 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, typepublic static final IsColor DEFAULT_VALUE_COLOR
public static final IsColor DEFAULT_EMPTY_VALUE_COLOR
public static final double DEFAULT_MAXIMUM_VALUE
public static final double MINIMUM_VALUE
public MeterDataset(double max)
max - maximum value of dataset.public MeterDataset(double max,
IsDefaultOptions defaultValues)
max - maximum value of dataset.defaultValues - default optionspublic 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 void setBorderColor(Gradient... borderColor)
borderColor - the border gradient of the arcs in the dataset as gradient.public void setHoverBackgroundColor(Gradient... colors)
colors - the fill gradient of the arcs in the dataset when hovered.public void setHoverBorderColor(Gradient... colors)
colors - the stroke gradient of the arcs in the dataset when hovered as gradient.public void setHoverBackgroundColor(Pattern... colors)
colors - the fill pattern of the arcs in the dataset when hovered.public final void setBorderWidth(int... borderWidth)
borderWidth - the border width of the arcs in the dataset.public final void setHoverBorderWidth(int... widths)
widths - the stroke width of the arcs when hovered.public final double getMax()
public final double getValue()
public void setValue(double value)
value - the value to setpublic final void setData(double... values)
Datasetpublic final void setData(List<Double> values)
Datasetpublic 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 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 List<String> getBorderColorAsString()
public List<IsColor> getBorderColor()
public List<Gradient> getBorderColorAsGradient()
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 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 List<String> getHoverBorderColorAsString()
public List<IsColor> getHoverBorderColor()
public List<Gradient> getHoverBorderColorAsGradient()