public abstract class AbstractTooltipLabelCallback extends Object implements TooltipLabelCallback
Constructor and Description |
---|
AbstractTooltipLabelCallback() |
Modifier and Type | Method and Description |
---|---|
String |
onAfterLabel(IsChart chart,
TooltipItem item)
Returns text to render after an individual label.
|
String |
onBeforeLabel(IsChart chart,
TooltipItem item)
Returns text to render before an individual label.
|
String |
onLabel(IsChart chart,
TooltipItem item)
Returns text to render for an individual item in the tooltip.
|
TooltipLabelColor |
onLabelColor(IsChart chart,
TooltipItem item)
Returns the colors to render for the tooltip item.
|
IsColor |
onLabelTextColor(IsChart chart,
TooltipItem item)
Returns the colors for the text of the label for the tooltip item.
|
public String onBeforeLabel(IsChart chart, TooltipItem item)
TooltipLabelCallback
onBeforeLabel
in interface TooltipLabelCallback
chart
- chart instanceitem
- tooltip itemnull
, it will be ignored.public String onLabel(IsChart chart, TooltipItem item)
TooltipLabelCallback
onLabel
in interface TooltipLabelCallback
chart
- chart instanceitem
- tooltip itemnull
, it will be ignored.public TooltipLabelColor onLabelColor(IsChart chart, TooltipItem item)
TooltipLabelCallback
onLabelColor
in interface TooltipLabelCallback
chart
- chart instanceitem
- tooltip itemnull
, it will be ignored.public IsColor onLabelTextColor(IsChart chart, TooltipItem item)
TooltipLabelCallback
onLabelTextColor
in interface TooltipLabelCallback
chart
- chart instanceitem
- tooltip itemnull
, it will be ignored.public String onAfterLabel(IsChart chart, TooltipItem item)
TooltipLabelCallback
onAfterLabel
in interface TooltipLabelCallback
chart
- chart instanceitem
- tooltip itemnull
, it will be ignored.