Package | Description |
---|---|
org.pepstock.charba.client |
Main package with all charts implementation, global classes and common interfaces.
|
org.pepstock.charba.client.annotation.listeners |
Contains all callback interfaces to implement for the
AnnotationPlugin.ID plugin. |
org.pepstock.charba.client.datalabels.events |
Contains the
DataLabelsPlugin.ID plugin event handlers interfaces to catch event of plugin. |
org.pepstock.charba.client.enums |
Contains all enumerations of some chart options where only a specific set of values can be set.
|
org.pepstock.charba.client.events |
Contains all events to interact with chart instance.
|
org.pepstock.charba.client.impl.callbacks |
Contains some callbacks implementations, available out-of-the box.
|
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 |
---|---|
EventPoint |
Helpers.getRelativePosition(ChartEventContext eventContext)
A common occurrence is taking an event, such as a click, and finding the data coordinates on the chart where the event occurred.
|
Modifier and Type | Method and Description |
---|---|
void |
ClickCallback.onClick(IsChart chart,
AbstractAnnotation annotation,
ChartEventContext event)
Method called once click is fired.
|
void |
DoubleClickCallback.onDoubleClick(IsChart chart,
AbstractAnnotation annotation,
ChartEventContext event)
Method called once dblclick is fired.
|
void |
EnterCallback.onEnter(IsChart chart,
AbstractAnnotation annotation,
ChartEventContext event)
Method called once enter is fired.
|
void |
LeaveCallback.onLeave(IsChart chart,
AbstractAnnotation annotation,
ChartEventContext event)
Method called once leave is fired.
|
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 |
---|---|
static boolean |
ModifierKey.arePressed(ChartEventContext event,
ModifierKey... keys)
Returns
true if all modifier keys are pressed when the event was emitted. |
boolean |
ModifierKey.isPressed(ChartEventContext event)
Returns
true if the modifier key is pressed when the event was emitted. |
Modifier and Type | Method and Description |
---|---|
ChartEventContext |
IsCommonChartEvent.getContext()
Returns the java script function context of CHART.JS events.
|
Constructor and Description |
---|
ChartClickEvent(ChartEventContext eventContext,
List<DatasetReference> items)
Creates the event with a list of items with dataset references related to the click
|
ChartHoverEvent(ChartEventContext eventContext,
List<DatasetReference> items)
Creates the event with a list of items with dataset references related to the hover
|
ChartResizeEvent(ChartEventContext eventContext,
SizeItem size)
Creates the event with a item with new size of the chart
|
LegendClickEvent(ChartEventContext eventContext,
LegendItem item)
Creates the event with legend item related to the click
|
LegendHoverEvent(ChartEventContext eventContext,
LegendItem item)
Creates the event with legend item related to the hover
|
LegendLeaveEvent(ChartEventContext eventContext,
LegendItem item)
Creates the event with legend item related to the leaving.
|
Modifier and Type | Method and Description |
---|---|
boolean |
DataLabelsSelectionHandler.onClick(DataLabelsContext context,
ChartEventContext event) |
boolean |
DataLabelsPointerHandler.onEnter(DataLabelsContext context,
ChartEventContext event) |
boolean |
DataLabelsPointerHandler.onLeave(DataLabelsContext context,
ChartEventContext event) |
Modifier and Type | Method and Description |
---|---|
ChartEventContext |
PluginEventArgument.getEventContext()
Returns the event context in the the CHART.JS event.
|