Class AnnotationContext


  • public final class AnnotationContext
    extends ChartContext
    The callback or handler context wrapper, created and passed by AnnotationPlugin.ID which contains the link to the native chart.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getAnnotation

        public AbstractAnnotation getAnnotation()
        Returns the annotation of plugin.
        Returns:
        the annotation of plugin
      • getElement

        public AnnotationElement getElement()
        Returns the annotation element of plugin.
        Returns:
        the annotation element of plugin
      • getShared

        public Map<String,​Object> getShared()
        Returns a map with shared instances in the plugin instance.
        This object instance is cross all annotations for the same chart instance.
        Returns:
        a map with shared instances in the plugin instance
      • isConsistent

        protected boolean isConsistent()
        Description copied from class: ChartContext
        Returns true if the context is consistent.
        Custom context (the plugin ones) should extend it and check if the context is consistent before invoking the callback.
        Overrides:
        isConsistent in class ChartContext
        Returns:
        true if the context is consistent