public final class GaugeDataset extends MeterDataset
MeterDataset.MINIMUM_VALUE
).MeterDataset.setValue(double)
) method instead of Dataset.setData(double...)
) one.Dataset.CanvasObjectProperty, Dataset.CommonProperty
DEFAULT_EMPTY_VALUE_COLOR, DEFAULT_MAXIMUM_VALUE, DEFAULT_VALUE_COLOR, MINIMUM_VALUE
DEFAULT_HIDDEN, DEFAULT_NORMALIZED, DEFAULT_PARSING
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 |
---|---|
Threshold |
getCurrent()
Returns the current threshold.
|
List<Threshold> |
getThresholds()
Gets all thresholds by an unmodifiable list.
|
boolean |
isPercentageThreshold()
Returns
true if percentage threshold is used, otherwise false . |
void |
setColor(IsColor valueColor)
Sets the fill color for value.
|
void |
setColor(String valueColor)
Sets the fill color for value.
|
void |
setPercentageThreshold(boolean percentageThreshold)
Sets
true if percentage threshold is used, otherwise false . |
void |
setThresholds(Threshold... newThresholds)
Sets all thresholds to use for this gauge.
|
void |
setValue(double value) |
getColor, getColorAsString, getEmptyColor, getEmptyColorAsString, getMax, getValue, setData, setData, setEmptyColor, setEmptyColor
createContext, getAnimationContainer, getBackgroundColorCallback, getBorderColorCallback, getClip, getClipAsObject, getData, getData, getDataCount, getDataset, getDataType, getDefaultBackgroundColorAsString, getDefaultBorderColorAsString, getDefaultBorderWidth, getDefaultHoverBackgroundColorAsString, getDefaultHoverBorderColorAsString, getDefaultHoverBorderWidth, getDefaultValues, getHoverBackgroundColorCallback, getHoverBorderColorCallback, getId, getLabel, getOptions, getOptions, getScope, getType, getTypedDataset, hasOptions, invokeColorCallback, isClip, isHidden, isNormalized, isParsing, removeOptions, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setClip, setClip, setClip, setHidden, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setLabel, setNormalized, setOptions, setOptions, setParsing
checkAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnimation, getAnimations, getTransitions, isAnimationEnabled, setAnimationEnabled
extractScope
public GaugeDataset(double max)
max
- maximum value of data.public GaugeDataset(double max, IsDefaultOptions defaultValues)
max
- maximum value of dataset.defaultValues
- default optionspublic void setColor(IsColor valueColor)
MeterDataset
setColor
in class MeterDataset
valueColor
- the fill color for value.public void setColor(String valueColor)
MeterDataset
setColor
in class MeterDataset
valueColor
- the fill color for value.public Threshold 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... newThresholds)
newThresholds
- thresholds array.public List<Threshold> getThresholds()
public void setValue(double value)
setValue
in class MeterDataset
value
- the value to set