public class MeterDataset extends DoughnutDataset
MINIMUM_VALUE
).setValue(double)
) method instead of Dataset.setData(double...)
) one.DoughnutDataset
Modifier and Type | Field and Description |
---|---|
static IsColor |
DEFAULT_EMPTY_VALUE_COLOR
Default empty color
|
static double |
DEFAULT_MAXIMUM_VALUE
Default maximum value.
|
static IsColor |
DEFAULT_VALUE_COLOR
Default value color
|
static double |
MINIMUM_VALUE
Minimum value.
|
Constructor and Description |
---|
MeterDataset(double max)
Creates a dataset setting the maximum value of dataset.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<IsColor> |
getBackgroundColor()
Returns the fill color of the arcs in the dataset.
|
java.util.List<java.lang.String> |
getBackgroundColorAsString()
Returns the fill color of the arcs in the dataset as string.
|
java.util.List<IsColor> |
getBorderColor()
Returns the border color of the arcs in the dataset.
|
java.util.List<java.lang.String> |
getBorderColorAsString()
Returns the border color of the arcs in the dataset as string.
|
java.util.List<java.lang.Integer> |
getBorderWidth()
Returns the border width of the arcs in the dataset.
|
java.util.List<IsColor> |
getHoverBackgroundColor()
Returns the fill color of the arcs when hovered
|
java.util.List<java.lang.String> |
getHoverBackgroundColorAsString()
Returns the fill color of the arcs when hovered as string
|
java.util.List<IsColor> |
getHoverBorderColor()
Returns the stroke color of the arcs when hovered.
|
java.util.List<java.lang.String> |
getHoverBorderColorAsString()
Returns the stroke color of the arcs when hovered.
|
java.util.List<java.lang.Integer> |
getHoverBorderWidth()
Returns the stroke width of the arcs when hovered.
|
double |
getMax() |
double |
getValue() |
void |
setBackgroundColor(IsColor... backgroundColor)
Sets the fill color of the arcs in the dataset.
|
void |
setBackgroundColor(java.lang.String... backgroundColor)
Sets the fill color of the arcs in the dataset.
|
void |
setBorderColor(IsColor... borderColor)
Sets the border color of the arcs in the dataset.
|
void |
setBorderColor(java.lang.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(java.util.List<java.lang.Double> values)
Sets the data property of a dataset for a chart is specified as an array of numbers.
|
void |
setHoverBackgroundColor(IsColor... colors)
Sets the fill color of the arcs when hovered
|
void |
setHoverBackgroundColor(java.lang.String... colors)
Sets the fill color of the arcs when hovered as string
|
void |
setHoverBorderColor(IsColor... colors)
Sets the stroke color of the arcs when hovered as string.
|
void |
setHoverBorderColor(java.lang.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, getLabel, getType, isHidden, setHidden, setLabel, setType
checkAndGetDoubleValues, checkAndGetEnumValues, checkAndGetIntegerValues, checkAndGetStringValues, checkAndSetDoubleValues, checkAndSetEnumValues, checkAndSetIntegerValues, checkAndSetStringValues, getDoubleArray, getIntegerArray, getJavaScriptObject, getObjectArray, getStringArray, getValue, getValue, getValue, getValue, getValue, getValue, getValue, has, has, hasToBeRegistered, isEmpty, keys, remove, remove, removeIfExists, setDoubleArray, setEnumValueArray, setIntegerArray, setObjectArray, setStringArray, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, type
public 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 void setBorderWidth(int... borderWidth)
borderWidth
- the border width of the arcs in the dataset.public void setHoverBorderWidth(int... widths)
widths
- the stroke width of the arcs when hovered.public double getMax()
public double getValue()
public void setValue(double value)
value
- the value to setpublic void setData(double... values)
Dataset
public void setData(java.util.List<java.lang.Double> values)
Dataset
setData
in class Dataset
values
- list of numbers.JsDoubleArrayList
public void setBackgroundColor(IsColor... backgroundColor)
backgroundColor
- the fill color of the arcs in the dataset.public void setBackgroundColor(java.lang.String... backgroundColor)
backgroundColor
- the fill color of the arcs in the dataset.public java.util.List<java.lang.String> getBackgroundColorAsString()
public java.util.List<IsColor> getBackgroundColor()
public void setBorderColor(IsColor... borderColor)
borderColor
- the border color of the arcs in the dataset.public void setBorderColor(java.lang.String... borderColor)
borderColor
- the border color of the arcs in the dataset as string.public java.util.List<java.lang.String> getBorderColorAsString()
public java.util.List<IsColor> getBorderColor()
public java.util.List<java.lang.Integer> getBorderWidth()
public void setHoverBackgroundColor(IsColor... colors)
colors
- the fill color of the arcs when hoveredpublic void setHoverBackgroundColor(java.lang.String... colors)
colors
- the fill color of the arcs when hovered as stringpublic java.util.List<java.lang.String> getHoverBackgroundColorAsString()
public java.util.List<IsColor> getHoverBackgroundColor()
public void setHoverBorderColor(IsColor... colors)
colors
- the stroke color of the arcs when hovered as string.public void setHoverBorderColor(java.lang.String... colors)
colors
- the stroke color of the arcs when hovered as string.public java.util.List<java.lang.String> getHoverBorderColorAsString()
public java.util.List<IsColor> getHoverBorderColor()
public java.util.List<java.lang.Integer> getHoverBorderWidth()