public final class AnnotationOptions extends AbstractPluginCachedOptions
AnnotationPlugin.ID plugin options where to set all configuration items needed to the plugin.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_DOUBLE_CLICK_SPEED
Default double click speed in milliseconds, 350.
|
static DrawTime |
DEFAULT_DRAW_TIME
Default draw time,
DrawTime.AFTER_DATASETS_DRAW. |
| Constructor and Description |
|---|
AnnotationOptions()
Creates new
AnnotationPlugin.ID plugin options. |
AnnotationOptions(IsChart chart)
Creates new
AnnotationPlugin.ID plugin options, relating to chart instance for default. |
| Modifier and Type | Method and Description |
|---|---|
List<AbstractAnnotation> |
getAnnotations()
Returns the list of annotations.
|
List<AbstractAnnotation> |
getAnnotations(boolean binding)
Returns the list of annotations.
|
int |
getDoubleClickSpeed()
Returns the double-click speed in milliseconds used to distinguish single-clicks from double-clicks whenever you need to capture both.
When listening for both Event.CLICK and Event.DOUBLE_CLICK, click events will be delayed by this amount. |
DrawTime |
getDrawTime()
Returns the draw time which defines when the annotations are drawn.
|
List<Event> |
getEvents()
Returns the browser events to enable on each annotation.
|
void |
setAnnotations(AbstractAnnotation... annotations)
Sets a set of annotations for plugin.
|
void |
setDoubleClickSpeed(int speed)
Sets the double-click speed in milliseconds used to distinguish single-clicks from double-clicks whenever you need to capture both.
When listening for both Event.CLICK and Event.DOUBLE_CLICK, click events will be delayed by this amount. |
void |
setDrawTime(DrawTime drawTime)
Sets the draw time which defines when the annotations are drawn.
|
void |
setEvents(Event... events)
Sets the browser events to enable on each annotation.
|
getInnerOptions, getReferences, registergetId, getPluginId, loadGlobalsPluginOptions, store, store, store, storecheckValue, empty, getArrayValue, getNativeChart, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, typepublic static final int DEFAULT_DOUBLE_CLICK_SPEED
public static final DrawTime DEFAULT_DRAW_TIME
DrawTime.AFTER_DATASETS_DRAW.public AnnotationOptions()
AnnotationPlugin.ID plugin options.public AnnotationOptions(IsChart chart)
AnnotationPlugin.ID plugin options, relating to chart instance for default.chart - chart instance related to the plugin optionspublic void setDrawTime(DrawTime drawTime)
drawTime - the draw time which defines when the annotations are drawnpublic DrawTime getDrawTime()
public void setDoubleClickSpeed(int speed)
Event.CLICK and Event.DOUBLE_CLICK, click events will be delayed by this amount.speed - the double-click speed in millisecondspublic int getDoubleClickSpeed()
Event.CLICK and Event.DOUBLE_CLICK, click events will be delayed by this amount.public void setEvents(Event... events)
events - the browser events to enable on each annotation.public List<Event> getEvents()
public void setAnnotations(AbstractAnnotation... annotations)
null, removes all annotations.annotations - set of anotation. If null, removes all annotationspublic List<AbstractAnnotation> getAnnotations()
public List<AbstractAnnotation> getAnnotations(boolean binding)
binding - if true binds the new array list into container