public class MeterDataset extends Dataset
MINIMUM_VALUE
).setValue(double)
) method.Dataset.CanvasObjectProperty, Dataset.CommonProperty
Modifier and Type | Field and Description |
---|---|
static IsColor |
DEFAULT_EMPTY_VALUE_COLOR
Default empty color, rgb(234, 234, 234).
|
static double |
DEFAULT_MAXIMUM_VALUE
Default maximum value is 100.0.
|
static IsColor |
DEFAULT_VALUE_COLOR
Default value color, rgb(140, 214, 16).
|
static double |
MINIMUM_VALUE
Minimum value is 0.0.
|
DEFAULT_HIDDEN, DEFAULT_NORMALIZED, DEFAULT_PARSING
Modifier | Constructor and Description |
---|---|
protected |
MeterDataset(ControllerType type,
double max,
IsDefaultOptions defaultValues)
Creates a dataset setting the maximum value of dataset and defaults value and the controller type in case of extension
|
|
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 |
---|---|
IsColor |
getColor()
Returns the fill color for value.
|
String |
getColorAsString()
Returns the fill color for value.
|
IsColor |
getEmptyColor()
Returns the fill color for empty sector.
|
String |
getEmptyColorAsString()
Returns the fill color for empty sector.
|
double |
getMax()
Returns the maximum value of chart.
|
double |
getValue()
Returns the value of the chart.
|
void |
setColor(IsColor valueColor)
Sets the fill color for value.
|
void |
setColor(String valueColor)
Sets the fill color for value.
|
void |
setData(double... values)
Throws an exception because not available.
|
void |
setData(List<Double> values)
Throws an exception because not available.
|
void |
setEmptyColor(IsColor emptyValueColor)
Sets the fill color for empty sector.
|
void |
setEmptyColor(String emptyValueColor)
Sets the fill color for empty sector.
|
void |
setValue(double value) |
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 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 optionsprotected MeterDataset(ControllerType type, double max, IsDefaultOptions defaultValues)
type
- controller type related to the datasetmax
- maximum value of dataset.defaultValues
- default optionspublic void setColor(IsColor valueColor)
valueColor
- the fill color for value.public void setColor(String valueColor)
valueColor
- the fill color for value.public String getColorAsString()
public IsColor getColor()
public void setEmptyColor(IsColor emptyValueColor)
emptyValueColor
- the fill color for empty sector.public void setEmptyColor(String emptyValueColor)
emptyValueColor
- the fill color for empty sector.public String getEmptyColorAsString()
public IsColor getEmptyColor()
public final double getMax()
public final double getValue()
public void setValue(double value)
value
- the value to setpublic final void setData(double... values)