Package | Description |
---|---|
org.pepstock.charba.client |
Main package with all charts implementation, global classes and common interfaces.
|
org.pepstock.charba.client.annotation.callbacks |
Contains the
AnnotationPlugin.ID plugin callback interfaces to catch events. |
org.pepstock.charba.client.dom |
Contains all classes needed to work with DOM tree, base classes of a DOM tree.
|
org.pepstock.charba.client.events |
Contains all events to interact with chart instance.
|
org.pepstock.charba.client.gwt.widgets |
Contains all charts classes wrapped as GWT widget in order to enable to use inside to GWT UIBinder.
|
org.pepstock.charba.client.impl.plugins |
Contains some plugins 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.
|
org.pepstock.charba.client.plugins |
Contains all classes to manage the plugin implementations.
|
Modifier and Type | Method and Description |
---|---|
DatasetMetaItem |
IsChart.getDatasetAtEvent(BaseNativeEvent event)
Looks for the dataset that matches the event and returns that metadata.
|
DatasetMetaItem |
AbstractChart.getDatasetAtEvent(BaseNativeEvent event)
Looks for the dataset that matches the event and returns that metadata.
|
DatasetItem |
IsChart.getElementAtEvent(BaseNativeEvent event)
Calling on your chart instance passing an argument of an event, will return the single element at the event position.
If there are multiple items within range, only the first is returned. |
DatasetItem |
AbstractChart.getElementAtEvent(BaseNativeEvent event)
Calling on your chart instance passing an argument of an event, will return the single element at the event position.
If there are multiple items within range, only the first is returned. |
List<DatasetItem> |
IsChart.getElementsAtEvent(BaseNativeEvent event)
Looks for the element under the event point, then returns all elements at the same data index.
Calling it on your chart instance passing an argument of an event, will return the point elements that are at that the same position of that event. |
List<DatasetItem> |
AbstractChart.getElementsAtEvent(BaseNativeEvent event)
Looks for the element under the event point, then returns all elements at the same data index.
Calling it on your chart instance passing an argument of an event, will return the point elements that are at that the same position of that event. |
void |
Plugin.onAfterEvent(IsChart chart,
BaseNativeEvent event)
Called after the 'event' has been consumed.
|
boolean |
Plugin.onBeforeEvent(IsChart chart,
BaseNativeEvent event)
Called before processing the specified 'event'.
|
Modifier and Type | Method and Description |
---|---|
void |
ClickCallback.onClick(IsChart chart,
BaseNativeEvent event,
AbstractAnnotation annotation)
Method called once click is fired.
|
void |
ContextMenuCallback.onContextMenu(IsChart chart,
BaseNativeEvent event,
AbstractAnnotation annotation)
Method called once contextmenu is fired.
|
void |
DoubleClickCallback.onDoubleClick(IsChart chart,
BaseNativeEvent event,
AbstractAnnotation annotation)
Method called once dblclick is fired.
|
void |
MouseDownCallback.onMouseDown(IsChart chart,
BaseNativeEvent event,
AbstractAnnotation annotation)
Method called once mousedown is fired.
|
void |
MouseEnterCallback.onMouseEnter(IsChart chart,
BaseNativeEvent event,
AbstractAnnotation annotation)
Method called once mouseenter is fired.
|
void |
MouseLeaveCallback.onMouseLeave(IsChart chart,
BaseNativeEvent event,
AbstractAnnotation annotation)
Method called once mouseleave is fired.
|
void |
MouseMoveCallback.onMouseMove(IsChart chart,
BaseNativeEvent event,
AbstractAnnotation annotation)
Method called once mousemove is fired.
|
void |
MouseOutCallback.onMouseOut(IsChart chart,
BaseNativeEvent event,
AbstractAnnotation annotation)
Method called once mouseout is fired.
|
void |
MouseOverCallback.onMouseOver(IsChart chart,
BaseNativeEvent event,
AbstractAnnotation annotation)
Method called once mouseover is fired.
|
void |
MouseUpCallback.onMouseUp(IsChart chart,
BaseNativeEvent event,
AbstractAnnotation annotation)
Method called once mouseup is fired.
|
void |
WheelCallback.onWheel(IsChart chart,
BaseNativeEvent event,
AbstractAnnotation annotation)
Method called once wheel is fired.
|
Modifier and Type | Method and Description |
---|---|
BaseNativeEvent |
DOMBuilder.createChangeEvent()
Creates a change event (based on a mouse event, type
BaseEventTypes.CONTEXT_MENU ) for internal use. |
Modifier and Type | Method and Description |
---|---|
void |
BaseEventTarget.EventListenerCallback.call(CallbackFunctionContext context,
BaseNativeEvent event)
A function that is called whenever an event of the specified type occurs.
|
Modifier and Type | Method and Description |
---|---|
BaseNativeEvent |
IsCommonChartEvent.getNativeEvent()
Returns the native event instance.
|
BaseNativeEvent |
AbstractEvent.getNativeEvent()
Returns the native event instance.
|
Constructor and Description |
---|
AbstractEvent(BaseNativeEvent nativeEvent,
EventType type)
Creates an event using a native event
|
AnimationCompleteEvent(BaseNativeEvent nativeEvent,
AnimationItem item)
Creates the event with the animation info from chart.
|
AnimationProgressEvent(BaseNativeEvent nativeEvent,
AnimationItem item)
Creates the event with the animation info from chart.
|
AxisClickEvent(BaseNativeEvent nativeEvent,
ScaleItem item,
Axis axis)
Creates the event with axis related to the click
|
ChartClickEvent(BaseNativeEvent nativeEvent,
Chart functionContext,
List<DatasetItem> items)
Creates the event with a list of items with dataset metadata related to the click
|
ChartHoverEvent(BaseNativeEvent nativeEvent,
Chart functionContext,
List<DatasetItem> items)
Creates the event with a list of items with dataset metadata related to the hover
|
ChartResizeEvent(BaseNativeEvent nativeEvent,
Chart functionContext,
SizeItem size)
Creates the event with a item with new size of the chart
|
DatasetRangeSelectionEvent(BaseNativeEvent nativeEvent)
Creates the event when the clear of current selection has been requested.
|
DatasetRangeSelectionEvent(BaseNativeEvent nativeEvent,
int from,
int to)
Creates the event with start and end index of selected datasets.
|
DatasetSelectionEvent(BaseNativeEvent nativeEvent,
DatasetItem item)
Creates the event with dataset metadata item related to the click
|
DatasetSelectionEvent(BaseNativeEvent nativeEvent,
IsChart chart,
DatasetItem item)
Creates the event with dataset metadata item related to the click and the chart instance
|
LegendClickEvent(BaseNativeEvent nativeEvent,
Chart functionContext,
LegendItem item)
Creates the event with legend item related to the click
|
LegendHoverEvent(BaseNativeEvent nativeEvent,
Chart functionContext,
LegendItem item)
Creates the event with legend item related to the hover
|
LegendLeaveEvent(BaseNativeEvent nativeEvent,
Chart functionContext,
LegendItem item)
Creates the event with legend item related to the leaving.
|
TitleClickEvent(BaseNativeEvent nativeEvent,
Title item)
Creates the event with title related to the click
|
Modifier and Type | Method and Description |
---|---|
DatasetMetaItem |
AbstractChartWidget.getDatasetAtEvent(BaseNativeEvent event) |
DatasetItem |
AbstractChartWidget.getElementAtEvent(BaseNativeEvent event) |
List<DatasetItem> |
AbstractChartWidget.getElementsAtEvent(BaseNativeEvent event) |
Modifier and Type | Method and Description |
---|---|
void |
ChartPointer.onAfterEvent(IsChart chart,
BaseNativeEvent event) |
boolean |
DatasetsItemsSelector.onBeforeEvent(IsChart chart,
BaseNativeEvent event) |
Modifier and Type | Method and Description |
---|---|
BaseNativeEvent |
EventPluginItem.getEvent()
Returns the native event into the CHART.JS event.
|
Modifier and Type | Method and Description |
---|---|
ScaleItem |
ScalesNode.getScaleIsInside(BaseNativeEvent event)
Returns the scale item if the chart event is inside of one of scales, otherwise
null . |
boolean |
ScalesNode.isInside(BaseNativeEvent event)
Returns
true if the chart event is inside of one of scales, otherwise false . |
boolean |
LegendHitBoxItem.isInside(BaseNativeEvent event)
Returns
true if the chart event is inside of this box, otherwise false . |
boolean |
BaseBoxItem.isInside(BaseNativeEvent event)
Returns
true if the chart event is inside of this box, otherwise false . |
Modifier and Type | Method and Description |
---|---|
void |
AbstractPlugin.onAfterEvent(IsChart chart,
BaseNativeEvent event) |
boolean |
AbstractPlugin.onBeforeEvent(IsChart chart,
BaseNativeEvent event) |