-
public class ChartController extends Base
Chart controller class.
-
-
Constructor Summary
Constructors Constructor Description ChartController(String jsChart)
-
Method Summary
Modifier and Type Method Description static ChartControllerinstantiate()StringgetJsBase()voidcancelDrawing()Cancels current annotation drawing. BasegetSelectedAnnotation()Returns currently selected annotation. ChartControllerremoveAllAnnotations()Removes all annotations from the chart. voidremoveAllListeners(String type)Removes all listeners from an object. ChartControllerremoveAnnotation(Base annotation)Removes one of annotations from plot by its instance. ChartControllerselect(Base annotation)Selects annotation. BasestartDrawing(AnnotationTypes annotationTypeOrConfig)Starts annotation drawing. BasestartDrawing(String annotationTypeOrConfig)Starts annotation drawing. BasestartDrawing(AnnotationJSONFormat annotationTypeOrConfig)Starts annotation drawing. voidsetOnClickListener(ListenersInterface.OnClickListener listener)voidsetOnClickListener(ListenersInterface.OnClickListener listener, String type, String ePath)voidunlistenByKey(String key)Removes an event listener which was added with listen() by the key returned by listen() or listenOnce(). ChartControllerunselect()Unselects annotations. -
-
Constructor Detail
-
ChartController
ChartController(String jsChart)
-
-
Method Detail
-
instantiate
static ChartController instantiate()
-
cancelDrawing
void cancelDrawing()
Cancels current annotation drawing.
-
getSelectedAnnotation
Base getSelectedAnnotation()
Returns currently selected annotation.
-
removeAllAnnotations
ChartController removeAllAnnotations()
Removes all annotations from the chart.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from an object. You can also optionally remove listeners of some particular type.
-
removeAnnotation
ChartController removeAnnotation(Base annotation)
Removes one of annotations from plot by its instance.
-
select
ChartController select(Base annotation)
Selects annotation.
-
startDrawing
Base startDrawing(AnnotationTypes annotationTypeOrConfig)
Starts annotation drawing.Note: Works only after draw is called.
-
startDrawing
Base startDrawing(String annotationTypeOrConfig)
Starts annotation drawing.Note: Works only after draw is called.
-
startDrawing
Base startDrawing(AnnotationJSONFormat annotationTypeOrConfig)
Starts annotation drawing.Note: Works only after draw is called.
-
setOnClickListener
void setOnClickListener(ListenersInterface.OnClickListener listener)
-
setOnClickListener
void setOnClickListener(ListenersInterface.OnClickListener listener, String type, String ePath)
-
unlistenByKey
void unlistenByKey(String key)
Removes an event listener which was added with listen() by the key returned by listen() or listenOnce().
-
unselect
ChartController unselect()
Unselects annotations.
-
-
-
-