Package org.pepstock.charba.client.items
Class DatasetItemController
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.items.DatasetItemController
-
public final class DatasetItemController extends NativeObjectContainer
This item provides all information about the dataset controller which has been displayed.
This object has been created and passed to event handler or callbacks to apply own logic.
This is a wrapper of the CHART.JS item with all needed info.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIndex()Returns the dataset index.doublegetInnerRadius()Returns the inner radius of dataset item in pixel.doublegetOffsetX()Returns the offset X.doublegetOffsetY()Returns the offset Y.doublegetOuterRadius()Returns the outer radius of dataset item in pixel.DatasetElementOptionsgetStyle(int dataIndex)Returns a set of predefined style properties that should be used to represent the dataset or the data if the index is specified.-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
Method Detail
-
getIndex
public int getIndex()
Returns the dataset index.- Returns:
- the dataset index.
-
getOuterRadius
public double getOuterRadius()
Returns the outer radius of dataset item in pixel.- Returns:
- the outer radius of dataset item in pixel.
-
getInnerRadius
public double getInnerRadius()
Returns the inner radius of dataset item in pixel.- Returns:
- the inner radius of dataset item in pixel.
-
getOffsetX
public double getOffsetX()
Returns the offset X.- Returns:
- the offset X.
-
getOffsetY
public double getOffsetY()
Returns the offset Y.- Returns:
- the offset Y.
-
getStyle
public DatasetElementOptions getStyle(int dataIndex)
Returns a set of predefined style properties that should be used to represent the dataset or the data if the index is specified.- Parameters:
dataIndex- index of data- Returns:
- a set of predefined style properties that should be used to represent the dataset or the data if the index is specified
-
-