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 SummaryAll 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.AbstractDatasetContextcheckIfPropertyIsValid, getDataIndex, getDatasetIndex, getDatasetItem, getElement, getMode, getParsedData, isActive
 - 
Methods inherited from class org.pepstock.charba.client.callbacks.ChartContextgetAttribute, getAttribute, getAttribute, getAttribute, getAttributes, getChart, getType, hasAttributes, setAttribute, setAttribute, setAttribute, setAttribute, setAttributes
 - 
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainercheckAndGetColor, 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, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
 
- 
 
- 
- 
- 
Method Detail- 
getLabelpublic LabelItem getLabel() Returns the label options of plugin.- Returns:
- the label options of the plugin
 
 - 
isConsistentprotected 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 class- ChartContext
- Returns:
- trueif the context is consistent
 
 
- 
 
-