Class 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 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