public final class GaugeDataset extends MeterDataset
MeterDataset.MINIMUM_VALUE
).MeterDataset.setValue(double)
) method instead of
Dataset.setData(double...)
) one.DEFAULT_EMPTY_VALUE_COLOR, DEFAULT_MAXIMUM_VALUE, DEFAULT_VALUE_COLOR, MINIMUM_VALUE
Constructor and Description |
---|
GaugeDataset(double max)
Creates a dataset for gauge with maximum value of data.
|
GaugeDataset(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.
|
IsThreshold |
getCurrent()
Returns the current threshold.
|
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.
|
List<Threshold> |
getThresholds()
Gets all thresholds.
|
boolean |
isPercentageThreshold()
Returns
true if percentage threshold is used, otherwise false . |
void |
setBackgroundColor(IsColor... backgroundColor)
Sets the fill color of the arcs in the dataset.
|
void |
setBackgroundColor(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(String... borderColor)
Sets the border color of the arcs in the dataset as string.
|
void |
setHoverBackgroundColor(IsColor... colors)
Sets the fill color of the arcs when hovered
|
void |
setHoverBackgroundColor(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(String... colors)
Sets the stroke color of the arcs when hovered as string.
|
void |
setPercentageThreshold(boolean percentageThreshold)
Sets
true if percentage threshold is used, otherwise false . |
void |
setThresholds(Threshold... thres)
Sets all thresholds to use for this gauge.
|
void |
setValue(double value) |
getMax, getValue, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderWidth, setData, setData, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderWidth
getData, getData, getDataType, getId, getLabel, getOptions, getType, hasOptions, isHidden, 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 GaugeDataset(double max)
max
- maximum value of data.public GaugeDataset(double max, IsDefaultOptions defaultValues)
max
- maximum value of dataset.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 IsThreshold getCurrent()
public boolean isPercentageThreshold()
true
if percentage threshold is used, otherwise false
.true
if percentage threshold is used, otherwise false
public void setPercentageThreshold(boolean percentageThreshold)
true
if percentage threshold is used, otherwise false
.percentageThreshold
- true
if percentage threshold is used, otherwise false
public void setThresholds(Threshold... thres)
thres
- thresholds array.public void setValue(double value)
setValue
in class MeterDataset
value
- the value to setpublic 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()