Package | Description |
---|---|
org.pepstock.charba.client |
Main package with all charts implementation, global classes and common interfaces.
|
org.pepstock.charba.client.commons |
Core classes to manage the inter-operations with java script code.
|
org.pepstock.charba.client.dom |
Contains all classes needed to work with DOM tree, base classes of a DOM tree.
|
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.gwt.widgets |
Contains all charts classes wrapped as GWT widget in order to enable to use inside to GWT UIBinder.
|
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.utils.toast.handlers |
Contains all handlers to implement in order to manage events of change status of the TOAST utility.
|
Modifier and Type | Method and Description |
---|---|
List<DatasetReference> |
AbstractChart.getDatasetAtEvent(BaseNativeEvent event)
Looks for the data sets that matches the event and returns the data set items references as a list.
|
List<DatasetReference> |
IsChart.getDatasetAtEvent(BaseNativeEvent event)
Looks for the dataset that matches the event.
|
DatasetReference |
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. |
DatasetReference |
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. |
List<DatasetReference> |
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. |
List<DatasetReference> |
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. |
EventPoint |
Helpers.getRelativePosition(IsChart chart,
BaseNativeEvent event)
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 |
---|---|
protected BaseNativeEvent |
NativeObjectContainer.getNativeEvent(Key key)
Returns a value (native event) in the embedded JavaScript object at specific property.
|
Modifier and Type | Method and Description |
---|---|
protected void |
NativeObjectContainer.setValue(Key key,
BaseNativeEvent value)
Sets a value (event) in the embedded JavaScript object at specific property.
|
protected void |
PropertyHandler.setValueAndAddToParent(Key key,
BaseNativeEvent value)
Sets a value (event) in the embedded JavaScript object at specific property.
|
protected void |
AbstractNode.setValueAndAddToParent(Key key,
BaseNativeEvent value)
Sets a value (event) in the embedded JavaScript object at specific property.
|
Modifier and Type | Class and Description |
---|---|
class |
BaseNativeMouseEvent
Represents a mouse events that occur due to the user interacting with a pointing device.
This is used only internally. |
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(BaseNativeEvent event)
A function that is called whenever an event of the specified type occurs.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
ModifierKey.arePressed(BaseNativeEvent event,
ModifierKey... keys)
Returns
true if all modifier keys are pressed when the event was emitted. |
boolean |
ModifierKey.isPressed(BaseNativeEvent event)
Returns
true if the modifier key is pressed when the event was emitted. |
Modifier and Type | Method and Description |
---|---|
BaseNativeEvent |
ChartEventContext.getNativeEvent()
Returns the CHARBA chart instance.
|
BaseNativeEvent |
AbstractEvent.getNativeEvent()
Returns the native event instance.
|
BaseNativeEvent |
IsCommonChartEvent.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,
ScaleValueItem value)
Creates the event with axis related to the click
|
AxisEnterEvent(BaseNativeEvent nativeEvent,
ScaleItem item,
Axis axis)
Creates the event with axis related to the enter
|
AxisHoverEvent(BaseNativeEvent nativeEvent,
ScaleItem item,
Axis axis)
Creates the event with axis related to the hover
|
AxisLeaveEvent(BaseNativeEvent nativeEvent,
ScaleItem item,
Axis axis)
Creates the event with axis related to the leave
|
ChartEventContext(Chart chart,
BaseNativeEvent event)
Creates the object with the chart instance, creating a change native event.
|
DatasetRangeCleanSelectionEvent(BaseNativeEvent nativeEvent)
Creates the event with native event.
|
DatasetRangeSelectionEvent(BaseNativeEvent nativeEvent,
ScaleValueItem from,
ScaleValueItem to)
Creates the event with start and end values of selected scale
|
DatasetSelectionEvent(BaseNativeEvent nativeEvent,
DatasetReference item)
Creates the event with dataset reference item related to the click
|
DatasetSelectionEvent(BaseNativeEvent nativeEvent,
IsChart chart,
DatasetReference item)
Creates the event with dataset reference item related to the click and the chart instance
|
SubtitleClickEvent(BaseNativeEvent nativeEvent,
Subtitle item)
Creates the event with subtitle related to the click
|
SubtitleEnterEvent(BaseNativeEvent nativeEvent,
Subtitle item)
Creates the event with subtitle related to the enter
|
SubtitleLeaveEvent(BaseNativeEvent nativeEvent,
Subtitle item)
Creates the event with subtitle related to the leave
|
TitleClickEvent(BaseNativeEvent nativeEvent,
Title item)
Creates the event with title related to the click
|
TitleEnterEvent(BaseNativeEvent nativeEvent,
Title item)
Creates the event with title related to the enter
|
TitleLeaveEvent(BaseNativeEvent nativeEvent,
Title item)
Creates the event with title related to the leave
|
Modifier and Type | Method and Description |
---|---|
List<DatasetReference> |
AbstractChartWidget.getDatasetAtEvent(BaseNativeEvent event) |
DatasetReference |
AbstractChartWidget.getElementAtEvent(BaseNativeEvent event) |
List<DatasetReference> |
AbstractChartWidget.getElementsAtEvent(BaseNativeEvent 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 . |
ScaleValueItem |
ScaleItem.getValueAtEvent(BaseNativeEvent event)
Returns the value on the axis related to an event position.
|
boolean |
LegendNode.isInside(BaseNativeEvent event) |
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 . |
boolean |
ScalesNode.isInside(BaseNativeEvent event)
Returns
true if the chart event is inside of one of scales, otherwise false . |
Modifier and Type | Method and Description |
---|---|
boolean |
ActionClickEventHandler.onClick(ToastItem item,
BaseNativeEvent event)
Invoked to manage CLICK events on toast action.
|
void |
ClickEventHandler.onClick(ToastItem item,
BaseNativeEvent event)
Invoked to manage CLICK events on toast item.
|