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 String
getDataElementType()
Returns the data element type.String
getDatasetElementType()
Returns the dataset element type.int
getIndex()
Returns the dataset index.double
getInnerRadius()
Returns the inner radius of dataset item in pixel.double
getOffsetX()
Returns the offset X.double
getOffsetY()
Returns the offset Y.double
getOuterRadius()
Returns the outer radius of dataset item in pixel.ChartElementOptions
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.-
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, 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, 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 ChartElementOptions 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
-
getDataElementType
public String getDataElementType()
Returns the data element type.- Returns:
- the data element type or
null
if not defined
-
getDatasetElementType
public String getDatasetElementType()
Returns the dataset element type.- Returns:
- the dataset element type or
null
if not defined
-
-