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 SummaryAll 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.NativeObjectContainercheckDefaultValuesArgument, 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- 
getIndexpublic int getIndex() Returns the dataset index.- Returns:
- the dataset index.
 
 - 
getOuterRadiuspublic double getOuterRadius() Returns the outer radius of dataset item in pixel.- Returns:
- the outer radius of dataset item in pixel.
 
 - 
getInnerRadiuspublic double getInnerRadius() Returns the inner radius of dataset item in pixel.- Returns:
- the inner radius of dataset item in pixel.
 
 - 
getOffsetXpublic double getOffsetX() Returns the offset X.- Returns:
- the offset X.
 
 - 
getOffsetYpublic double getOffsetY() Returns the offset Y.- Returns:
- the offset Y.
 
 - 
getStylepublic 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
 
 
- 
 
-