Class InnerData


  • public final class InnerData
    extends NativeObjectContainer
    Inner data implementation of the object which is mapping additional data.
    Inside this object there is an array of original object used by the user.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • isGroup

        public boolean isGroup()
        Returns true if the data point is a group.
        Returns:
        true if the data point is a group
      • isLeaf

        public boolean isLeaf()
        Returns true if the data point is a leaf node after grouping.
        Returns:
        true if the data point is a leaf node after grouping
      • getChildren

        public <T extends NativeObjectContainerList<T> getChildren​(NativeObjectContainerFactory<T> factory)
        Returns the object in the user format of the data point.
        Type Parameters:
        T - type of user object
        Parameters:
        factory - instance of factory to create the native object
        Returns:
        the object in the user format of the data point
      • getIndex

        public int getIndex()
        Returns the original index in the data of the data point.
        Returns:
        the original index in the data of the data point
      • getLabel

        public String getLabel()
        Returns the label of the data point in the grouped data.
        Returns:
        the label of the data point in the grouped data
      • getPath

        public String getPath()
        Returns the path of the data point in the grouped data.
        Returns:
        the path of the data point in the grouped data
      • getAttribute

        public final double getAttribute​(Key key)
        Returns a custom field value from data point.
        Parameters:
        key - key of java script object to get.
        Returns:
        custom field value from data point.
      • getAttributeAsString

        public final String getAttributeAsString​(Key key)
        Returns a custom field value from data point.
        Parameters:
        key - key of java script object to get.
        Returns:
        custom field value from data point.
      • getAttributeAsDate

        public final Date getAttributeAsDate​(Key key)
        Returns a custom field value from data point.
        Parameters:
        key - key of java script object to get.
        Returns:
        custom field value from data point.
      • getAttributeAsObject

        public final <T extends NativeObjectContainer> T getAttributeAsObject​(Key key,
                                                                              NativeObjectContainerFactory<T> factory)
        Returns a custom field value from data point.
        Type Parameters:
        T - type of user object
        Parameters:
        key - key of java script object to get.
        factory - instance of factory to create the native object
        Returns:
        custom field value from data point.