public final class GaugeDataset extends MeterDataset
MeterDataset.MINIMUM_VALUE
).MeterDataset.setValue(double)
) method instead of Dataset.setData(double...)
) one.MeterDataset
DEFAULT_EMPTY_VALUE_COLOR, DEFAULT_MAXIMUM_VALUE, DEFAULT_VALUE_COLOR, MINIMUM_VALUE
Constructor and Description |
---|
GaugeDataset(double max) |
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.
|
IsThreshold |
getCurrent() |
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.
|
java.util.List<Threshold> |
getThresholds()
Gets all thresholds.
|
boolean |
isPercentageThreshold() |
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 |
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 |
setPercentageThreshold(boolean percentageThreshold) |
void |
setThresholds(Threshold... thres)
Sets all thresholds to use for this gauge.
|
void |
setValue(double value) |
getMax, getValue, setBorderWidth, setData, setData, setHoverBorderWidth
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 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 IsThreshold getCurrent()
public boolean isPercentageThreshold()
public void setPercentageThreshold(boolean percentageThreshold)
percentageThreshold
- the percentageThresholds to setpublic void setThresholds(Threshold... thres)
thres
- thresholds array.Threshold
public java.util.List<Threshold> getThresholds()
public void setValue(double value)
setValue
in class MeterDataset
value
- the value to setpublic 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()