Class ControllerContext


  • @JsType(isNative=true,
            name="CharbaControllerContext",
            namespace="<global>")
    public final class ControllerContext
    extends Object
    This object stores the this instance of java script because is necessary to invoke the default methods of controller when it's extending an existing chart.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getIndex

        @JsOverlay
        public final int getIndex()
        Returns the index of the data inside the dataset.
        Returns:
        the index of the data inside the dataset.
      • getChart

        @JsOverlay
        public final IsChart getChart()
        Returns the CHARBA chart instance.
        Returns:
        the CHARBA chart instance
      • getNode

        @JsOverlay
        public final ChartNode getNode()
        Returns the chart node with runtime data.
        Returns:
        the chart node.