Class AnnotationPlugin
- java.lang.Object
-
- org.pepstock.charba.client.plugins.AbstractExtensionPlugin<AnnotationOptions>
-
- org.pepstock.charba.client.annotation.AnnotationPlugin
-
public final class AnnotationPlugin extends AbstractExtensionPlugin<AnnotationOptions>
Entry point of ANNOTATION plugin to enable the plugin.
The ANNOTATION plugin draws lines and boxes on the chart area.
The ANNOTATION plugin plugin works with line, bar, scatter and bubble charts that use linear, logarithmic, time, or category scales.
The ANNOTATION plugin plugin will not work on any chart that does not have exactly two axes, including pie, radar, and polar area charts.- Author:
- Andrea "Stock" Stocchero
-
-
Field Summary
Fields Modifier and Type Field Description static AnnotationOptionsFactory
FACTORY
Annotation options factorystatic String
ID
Plugin ID "annotation".
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
enable()
Inject the plugin but disables in the all charts waiting for the specific statement for each chart.static void
enable(boolean enableToAllCharts)
Inject the plugin and by the argument decides to enable the plugin to all charts or not.-
Methods inherited from class org.pepstock.charba.client.plugins.AbstractExtensionPlugin
applyingDefaults, getDefaults, isRegistered, loadDefaults
-
-
-
-
Field Detail
-
ID
public static final String ID
Plugin ID "annotation".
-
FACTORY
public static final AnnotationOptionsFactory FACTORY
Annotation options factory
-
-
Method Detail
-
enable
public static void enable()
Inject the plugin but disables in the all charts waiting for the specific statement for each chart.
-
enable
public static void enable(boolean enableToAllCharts)
Inject the plugin and by the argument decides to enable the plugin to all charts or not.- Parameters:
enableToAllCharts
- bytrue
the plugin will be enabled to all charts, otherwisefalse
.
-
-