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 thethisinstance 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 IsChartgetChart()Returns the CHARBA chart instance.intgetIndex()Returns the index of the data inside the dataset.ChartNodegetNode()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.
-
-