| 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.listeners | 
 Contains all callback interfaces to implement for the  
AnnotationPlugin.ID plugin. | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
BoxAnnotation
Implements a BOX annotation which draws a box in the 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  | 
EllipseAnnotation
Implements a ELLIPSE annotation which draws a ellipse in the a chart. 
If one of the axes is not specified, the ellipse 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 in the a chart. 
Vertical or horizontal lines are supported.  | 
class  | 
PointAnnotation
Implements a POINT annotation which draws a point in the a chart. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
AbstractAnnotation | 
AnnotationContext.getAnnotation()
Returns the annotation of plugin. 
 | 
AbstractAnnotation | 
AnnotationOptions.getAnnotation(AnnotationId id)
Returns the annotation with the id passed as argument or  
null if not exist. | 
AbstractAnnotation | 
AnnotationOptions.getAnnotation(String id)
Returns the annotation with the id passed as argument or  
null if not exist. | 
| Modifier and Type | Method and Description | 
|---|---|
List<AbstractAnnotation> | 
AnnotationOptions.getAnnotations()
Returns the collection of annotations. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
AnnotationOptions.addAnnotations(AbstractAnnotation... annotations)
Adds an annotations for plugin. 
 | 
void | 
AnnotationOptions.setAnnotations(AbstractAnnotation... annotations)
Sets a set of annotations for plugin. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
ClickCallback.onClick(IsChart chart,
       AbstractAnnotation annotation)
Method called once click is fired. 
 | 
void | 
DoubleClickCallback.onDoubleClick(IsChart chart,
             AbstractAnnotation annotation)
Method called once dblclick is fired. 
 | 
void | 
EnterCallback.onEnter(IsChart chart,
       AbstractAnnotation annotation)
Method called once enter is fired. 
 | 
void | 
LeaveCallback.onLeave(IsChart chart,
       AbstractAnnotation annotation)
Method called once leave is fired. 
 |