Class ControllerContext
- java.lang.Object
-
- org.pepstock.charba.client.controllers.ControllerContext
-
@JsType(isNative=true, name="CharbaControllerContext", namespace="<global>") public final class ControllerContext extends Object
This object stores thethis
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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IsChart
getChart()
Returns the CHARBA chart instance.int
getIndex()
Returns the index of the data inside the dataset.ChartNode
getNode()
Returns the chart node with runtime data.
-
-
-
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.
-
-