Class DataLabelsContext
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.callbacks.ChartContext
-
- org.pepstock.charba.client.callbacks.AbstractDatasetContext
-
- org.pepstock.charba.client.datalabels.DataLabelsContext
-
public final class DataLabelsContext extends AbstractDatasetContext
The option context is used to give contextual information when resolving options forDataLabelsPlugin.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LabelItemgetLabel()Returns the label options of plugin.protected booleanisConsistent()Returnstrueif the context is consistent.
Custom context (the plugin ones) should extend it and check if the context is consistent before invoking the callback.-
Methods inherited from class org.pepstock.charba.client.callbacks.AbstractDatasetContext
checkIfPropertyIsValid, getDataIndex, getDatasetElement, getDatasetIndex, getDatasetItem, getMode, isActive
-
Methods inherited from class org.pepstock.charba.client.callbacks.ChartContext
getAttribute, getAttribute, getAttribute, getAttribute, getAttributes, getChart, getType, hasAttributes, 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, 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
-
getLabel
public LabelItem getLabel()
Returns the label options of plugin.- Returns:
- the label options of the plugin
-
isConsistent
protected boolean isConsistent()
Description copied from class:ChartContextReturnstrueif the context is consistent.
Custom context (the plugin ones) should extend it and check if the context is consistent before invoking the callback.- Overrides:
isConsistentin classChartContext- Returns:
trueif the context is consistent
-
-