Class PluginDatasetArgument


  • public final class PluginDatasetArgument
    extends PluginUpdateArgument
    This is a wrapper of java script object which represents a dataset.
    This object is used in the plugins methods of CHART.JS.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • PluginDatasetArgument

        public PluginDatasetArgument​(PluginsEnvelop<NativeObject> envelop)
        Creates the item using an envelop of the native java script object which contains all properties.
        Parameters:
        envelop - envelop of the native java script object which contains all properties.
    • Method Detail

      • getIndex

        public int getIndex()
        Returns the index of the data inside the dataset.
        Returns:
        the index of the data inside the dataset.
      • getDatasetItem

        public DatasetItem getDatasetItem()
        Returns the dataset item.
        Returns:
        the dataset item.