Package | Description |
---|---|
org.pepstock.charba.client.annotation |
Contains all classes to activate the
AnnotationPlugin.ID plugin (AKA
chartjs-plugin-annotation.js ) for CHART.js. |
org.pepstock.charba.client.annotation.callbacks |
Contains the
AnnotationPlugin.ID plugin callback interfaces to catch events. |
Modifier and Type | Class and Description |
---|---|
class |
BoxAnnotation
Implements a BOX annotation which draws a box into a chart.
If one of the axes is not specified, the box will take the entire chart dimension. The 4 coordinates, xMin, xMax, yMin, yMax are optional. |
class |
LineAnnotation
Implements a LINE annotation which draws a line into a chart.
Vertical or horizontal lines are supported. |
Modifier and Type | Method and Description |
---|---|
List<AbstractAnnotation> |
AnnotationOptions.getAnnotations()
Returns the list of annotations.
|
List<AbstractAnnotation> |
AnnotationOptions.getAnnotations(boolean binding)
Returns the list of annotations.
|
Modifier and Type | Method and Description |
---|---|
void |
AnnotationOptions.setAnnotations(AbstractAnnotation... annotations)
Sets a set of annotations for plugin.
|
Modifier and Type | Method and Description |
---|---|
void |
ClickCallback.onClick(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once click is fired.
|
void |
ContextMenuCallback.onContextMenu(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once contextmenu is fired.
|
void |
DoubleClickCallback.onDoubleClick(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once dblclick is fired.
|
void |
MouseDownCallback.onMouseDown(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once mousedown is fired.
|
void |
MouseEnterCallback.onMouseEnter(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once mouseenter is fired.
|
void |
MouseLeaveCallback.onMouseLeave(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once mouseleave is fired.
|
void |
MouseMoveCallback.onMouseMove(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once mousemove is fired.
|
void |
MouseOutCallback.onMouseOut(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once mouseout is fired.
|
void |
MouseOverCallback.onMouseOver(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once mouseover is fired.
|
void |
MouseUpCallback.onMouseUp(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once mouseup is fired.
|
void |
WheelCallback.onWheel(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once wheel is fired.
|