Class MeterContext
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.callbacks.ChartContext
-
- org.pepstock.charba.client.impl.charts.MeterContext
-
public final class MeterContext extends ChartContext
The callback context wrapper, created and passed byMeterOptionswhich contains the link to the native chart.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDatasetLabel()Returns the data set label.doublegetEasing()Returns the easing of drawing (between 0 and 1) for animation.doublegetValue()Returns the value of meter or gauge dataset.-
Methods inherited from class org.pepstock.charba.client.callbacks.ChartContext
checkIfPropertyIsValid, getAttribute, getAttribute, getAttribute, getAttribute, getAttributes, getChart, getType, hasAttributes, isConsistent, setAttribute, setAttribute, setAttribute, setAttribute, setAttributes
-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
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, 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, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
Method Detail
-
getValue
public double getValue()
Returns the value of meter or gauge dataset.- Returns:
- the value of meter or gauge dataset
-
getEasing
public double getEasing()
Returns the easing of drawing (between 0 and 1) for animation.- Returns:
- the easing of drawing (between 0 and 1) for animation
-
getDatasetLabel
public String getDatasetLabel()
Returns the data set label.- Returns:
- the data set label
-
-