Package | Description |
---|---|
org.pepstock.charba.client.datalabels |
Contains all classes to activate the
DataLabelsPlugin.ID plugin (AKA chartjs-plugin-datalabels.js ) for CHART.js. |
org.pepstock.charba.client.datalabels.callbacks |
Contains the
DataLabelsPlugin.ID plugin callback interfaces to configure the plugin itself. |
org.pepstock.charba.client.datalabels.events |
Contains the
DataLabelsPlugin.ID plugin event handlers interfaces to catch event of plugin. |
org.pepstock.charba.client.impl.callbacks |
Contains some callbacks implementations, available out-of-the box.
|
Modifier and Type | Method and Description |
---|---|
ColorCallback<DataLabelsContext> |
LabelItem.getBackgroundColorCallback()
Returns the background color callback, if set, otherwise
null . |
ColorCallback<DataLabelsContext> |
LabelItem.getBorderColorCallback()
Returns the border color callback, if set, otherwise
null . |
RadiusCallback<DataLabelsContext> |
LabelItem.getBorderRadiusCallback()
Returns the border radius callback, if set, otherwise
null . |
WidthCallback<DataLabelsContext> |
LabelItem.getBorderWidthCallback()
Returns the border width callback, if set, otherwise
null . |
ColorCallback<DataLabelsContext> |
LabelItem.getColorCallback()
Returns the color callback, if set, otherwise
null . |
FontCallback<DataLabelsContext> |
LabelItem.getFontCallback()
Returns the font callback, if set, otherwise
null . |
OffsetCallback<DataLabelsContext> |
LabelItem.getOffsetCallback()
Returns the offset callback, if set, otherwise
null . |
PaddingCallback<DataLabelsContext> |
LabelItem.getPaddingCallback()
Returns the padding callback, if set, otherwise
null . |
RotationCallback<DataLabelsContext> |
LabelItem.getRotationCallback()
Returns the rotation callback, if set, otherwise
null . |
TextAlignCallback<DataLabelsContext> |
LabelItem.getTextAlignCallback()
Returns the text align callback, if set, otherwise
null . |
ColorCallback<DataLabelsContext> |
LabelItem.getTextShadowColorCallback()
Returns the text shadow color callback, if set, otherwise
null . |
ColorCallback<DataLabelsContext> |
LabelItem.getTextStrokeColorCallback()
Returns the text stroke color callback, if set, otherwise
null . |
WidthCallback<DataLabelsContext> |
LabelItem.getTextStrokeWidthCallback()
Returns the text stroke width callback, if set, otherwise
null . |
Modifier and Type | Method and Description |
---|---|
void |
LabelItem.setBackgroundColor(ColorCallback<DataLabelsContext> backgroundColorCallback)
Sets the background color callback.
|
AbstractBuilder<T> |
AbstractBuilder.setBackgroundColor(ColorCallback<DataLabelsContext> backgroundColorCallback)
Sets the background color callback.
|
void |
LabelItem.setBorderColor(ColorCallback<DataLabelsContext> borderColorCallback)
Sets the border color callback.
|
AbstractBuilder<T> |
AbstractBuilder.setBorderColor(ColorCallback<DataLabelsContext> borderColorCallback)
Sets the border color callback.
|
void |
LabelItem.setBorderRadius(RadiusCallback<DataLabelsContext> borderRadiusCallback)
Sets the border radius callback.
|
AbstractBuilder<T> |
AbstractBuilder.setBorderRadius(RadiusCallback<DataLabelsContext> borderRadiusCallback)
Sets the border radius callback.
|
void |
LabelItem.setBorderWidth(WidthCallback<DataLabelsContext> borderWidthCallback)
Sets the border width callback.
|
AbstractBuilder<T> |
AbstractBuilder.setBorderWidth(WidthCallback<DataLabelsContext> borderWidthCallback)
Sets the border width callback.
|
void |
LabelItem.setColor(ColorCallback<DataLabelsContext> colorCallback)
Sets the color callback.
|
AbstractBuilder<T> |
AbstractBuilder.setColor(ColorCallback<DataLabelsContext> colorCallback)
Sets the color callback.
|
void |
LabelItem.setFont(FontCallback<DataLabelsContext> fontCallback)
Sets the the font callback.
|
AbstractBuilder<T> |
AbstractBuilder.setFont(FontCallback<DataLabelsContext> fontCallback)
Sets the the font callback.
|
void |
LabelItem.setOffset(OffsetCallback<DataLabelsContext> offsetCallback)
Sets the offset callback.
|
AbstractBuilder<T> |
AbstractBuilder.setOffset(OffsetCallback<DataLabelsContext> offsetCallback)
Sets the offset callback.
|
void |
LabelItem.setPadding(PaddingCallback<DataLabelsContext> paddingCallback)
Sets the padding callback.
|
AbstractBuilder<T> |
AbstractBuilder.setPadding(PaddingCallback<DataLabelsContext> paddingCallback)
Sets the padding callback.
|
void |
LabelItem.setRotation(RotationCallback<DataLabelsContext> rotationCallback)
Sets the rotation callback.
|
AbstractBuilder<T> |
AbstractBuilder.setRotation(RotationCallback<DataLabelsContext> rotationCallback)
Sets the rotation callback.
|
void |
LabelItem.setTextAlign(TextAlignCallback<DataLabelsContext> textAlignCallback)
Sets the text align callback.
|
AbstractBuilder<T> |
AbstractBuilder.setTextAlign(TextAlignCallback<DataLabelsContext> textAlignCallback)
Sets the text align callback.
|
void |
LabelItem.setTextShadowColor(ColorCallback<DataLabelsContext> textShadowColorCallback)
Sets the text shadow color callback.
|
AbstractBuilder<T> |
AbstractBuilder.setTextShadowColor(ColorCallback<DataLabelsContext> textShadowColorCallback)
Sets the text shadow color callback.
|
void |
LabelItem.setTextStrokeColor(ColorCallback<DataLabelsContext> textStrokeColorCallback)
Sets the text stroke color callback.
|
AbstractBuilder<T> |
AbstractBuilder.setTextStrokeColor(ColorCallback<DataLabelsContext> textStrokeColorCallback)
Sets the text stroke color callback.
|
void |
LabelItem.setTextStrokeWidth(WidthCallback<DataLabelsContext> textStrokeWidthCallback)
Sets the text stroke width callback.
|
AbstractBuilder<T> |
AbstractBuilder.setTextStrokeWidth(WidthCallback<DataLabelsContext> textStrokeWidthCallback)
Sets the text stroke width callback.
|
Modifier and Type | Method and Description |
---|---|
String |
FormatterCallback.invoke(DataLabelsContext context,
DataItem dataItem)
Returns the formatted label value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractEventHandler.onClick(DataLabelsContext context,
ChartEventContext event) |
boolean |
ClickEventHandler.onClick(DataLabelsContext context,
ChartEventContext event)
Invoked to manage CLICK events on labels.
|
boolean |
AbstractEventHandler.onEnter(DataLabelsContext context,
ChartEventContext event) |
boolean |
EnterEventHandler.onEnter(DataLabelsContext context,
ChartEventContext event)
Invoked to manage ENTER events on labels.
|
boolean |
AbstractEventHandler.onLeave(DataLabelsContext context,
ChartEventContext event) |
boolean |
LeaveEventHandler.onLeave(DataLabelsContext context,
ChartEventContext event)
Invoked to manage LEAVE events on labels.
|
Modifier and Type | Method and Description |
---|---|
String |
PercentageCallback.invoke(DataLabelsContext context,
DataItem dataItem) |
boolean |
DataLabelsSelectionHandler.onClick(DataLabelsContext context,
ChartEventContext event) |
boolean |
DataLabelsPointerHandler.onEnter(DataLabelsContext context,
ChartEventContext event) |
boolean |
DataLabelsPointerHandler.onLeave(DataLabelsContext context,
ChartEventContext event) |