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.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.
|
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. |
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 | 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 |
---|---|
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
|
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 |
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 . |
boolean |
LegendHitBoxItem.isInside(BaseNativeEvent event)
Returns
true if the chart event is inside of this box, otherwise false . |