Package | Description |
---|---|
org.pepstock.charba.client |
Main package with all charts implementation, global classes and common interfaces.
|
org.pepstock.charba.client.callbacks |
All callbacks interfaces to be implemented, also to use the scriptable options of CHART.JS.
|
org.pepstock.charba.client.data |
Contains all elements to configure the datasets of a chart instance (know as chart data at instance level).
|
org.pepstock.charba.client.items |
Contains all elements generated by CHART.JS, which are mapping java script objects, to use at runtime in plugins, events or controllers.
|
Modifier and Type | Method and Description |
---|---|
String |
Defaults.invokeTooltipsCallbackOnLabel(IsChart chart,
TooltipItem item)
Returns the default text to render for an individual item in the tooltip.
|
TooltipLabelColor |
Defaults.invokeTooltipsCallbackOnLabelColor(IsChart chart,
TooltipItem item)
Returns the default colors to render for the tooltip item.
|
TooltipLabelPointStyle |
Defaults.invokeTooltipsCallbackOnLabelPointStyle(IsChart chart,
TooltipItem item)
Returns the default point style to render for the tooltip item.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
Defaults.invokeTooltipsCallbackOnTitle(IsChart chart,
List<TooltipItem> items)
Returns the default text to render as the title of the tooltip.
|
Modifier and Type | Method and Description |
---|---|
List<TooltipItem> |
TooltipContext.getItems()
Returns the model of tooltip.
|
Modifier and Type | Method and Description |
---|---|
String |
AbstractTooltipLabelCallback.onAfterLabel(IsChart chart,
TooltipItem item) |
default String |
TooltipLabelCallback.onAfterLabel(IsChart chart,
TooltipItem item)
Returns text to render after an individual label.
If returns null , it will be ignored. |
String |
AbstractTooltipLabelCallback.onBeforeLabel(IsChart chart,
TooltipItem item) |
default String |
TooltipLabelCallback.onBeforeLabel(IsChart chart,
TooltipItem item)
Returns text to render before an individual label.
This will be called for each item in the tooltip. If returns null , it will be ignored. |
String |
AbstractTooltipLabelCallback.onLabel(IsChart chart,
TooltipItem item) |
default String |
TooltipLabelCallback.onLabel(IsChart chart,
TooltipItem item)
Returns text to render for an individual item in the tooltip.
If returns null , it will be ignored. |
TooltipLabelColor |
AbstractTooltipLabelCallback.onLabelColor(IsChart chart,
TooltipItem item) |
default TooltipLabelColor |
TooltipLabelCallback.onLabelColor(IsChart chart,
TooltipItem item)
Returns the colors and borders to render for the tooltip item.
If returns null , it will be ignored. |
default TooltipLabelPointStyle |
TooltipLabelCallback.onLabelPointStyle(IsChart chart,
TooltipItem item)
Returns the point style to use instead of color boxes if
usePointStyle is true.Default implementation uses the point style from the data set points. |
IsColor |
AbstractTooltipLabelCallback.onLabelTextColor(IsChart chart,
TooltipItem item) |
default IsColor |
TooltipLabelCallback.onLabelTextColor(IsChart chart,
TooltipItem item)
Returns the colors for the text of the label for the tooltip item.
If returns null , it will be ignored. |
Modifier and Type | Method and Description |
---|---|
List<String> |
AbstractTooltipBodyCallback.onAfterBody(IsChart chart,
List<TooltipItem> items) |
default List<String> |
TooltipBodyCallback.onAfterBody(IsChart chart,
List<TooltipItem> items)
Returns text to render after the body section.
If returns null or empty list, it will be ignored. |
List<String> |
AbstractTooltipFooterCallback.onAfterFooter(IsChart chart,
List<TooltipItem> items) |
default List<String> |
TooltipFooterCallback.onAfterFooter(IsChart chart,
List<TooltipItem> items)
Text to render after the footer section.
If returns null or empty list, it will be ignored. |
default List<String> |
TooltipTitleCallback.onAfterTitle(IsChart chart,
List<TooltipItem> items)
Returns text to render after the title.
If returns null or empty list, it will be ignored. |
List<String> |
AbstractTooltipTitleCallback.onAfterTitle(IsChart chart,
List<TooltipItem> items) |
List<String> |
AbstractTooltipBodyCallback.onBeforeBody(IsChart chart,
List<TooltipItem> items) |
default List<String> |
TooltipBodyCallback.onBeforeBody(IsChart chart,
List<TooltipItem> items)
Returns text to render before the body section.
If returns null or empty list, it will be ignored. |
List<String> |
AbstractTooltipFooterCallback.onBeforeFooter(IsChart chart,
List<TooltipItem> items) |
default List<String> |
TooltipFooterCallback.onBeforeFooter(IsChart chart,
List<TooltipItem> items)
Returns text to render before the footer section.
If returns null or empty list, it will be ignored. |
default List<String> |
TooltipTitleCallback.onBeforeTitle(IsChart chart,
List<TooltipItem> items)
Returns the text to render before the title.
If returns null or empty list, it will be ignored. |
List<String> |
AbstractTooltipTitleCallback.onBeforeTitle(IsChart chart,
List<TooltipItem> items) |
List<String> |
AbstractTooltipFooterCallback.onFooter(IsChart chart,
List<TooltipItem> items) |
default List<String> |
TooltipFooterCallback.onFooter(IsChart chart,
List<TooltipItem> items)
Returns text to render as the footer of the tooltip.
If returns null or empty list, it will be ignored. |
default List<String> |
TooltipTitleCallback.onTitle(IsChart chart,
List<TooltipItem> items)
Returns text to render as the title of the tooltip.
If returns null or empty list, it will be ignored. |
List<String> |
AbstractTooltipTitleCallback.onTitle(IsChart chart,
List<TooltipItem> items) |
Modifier and Type | Method and Description |
---|---|
Dataset |
Data.retrieveDataset(TooltipItem tooltipItem)
Returns a data set instance by tooltip item locator, data set index and index.
|
Modifier and Type | Method and Description |
---|---|
TooltipItem |
TooltipItem.TooltipItemFactory.create(NativeObject nativeObject) |
Modifier and Type | Method and Description |
---|---|
List<TooltipItem> |
TooltipModel.getDataPoints()
Returns the list of tooltip items related to data points.
|
Modifier and Type | Method and Description |
---|---|
void |
TooltipLabelColor.setBackgroundColor(TooltipItem tooltipItem,
Gradient gradient)
Sets the background color of the tooltip item as gradient.
|
void |
TooltipLabelColor.setBackgroundColor(TooltipItem tooltipItem,
Pattern pattern)
Sets the background color of the tooltip item as pattern
|
void |
TooltipLabelColor.setBorderColor(TooltipItem tooltipItem,
Gradient gradient)
Sets the border color of the tooltip item as gradient.
|