Class ChartElement

    • Constructor Detail

      • ChartElement

        protected ChartElement​(String type,
                               NativeObject nativeObject)
        Creates the element using its type and a native java script object which contains all properties.
        Parameters:
        type - chart element type
        nativeObject - native java script object which contains all properties.
      • ChartElement

        protected ChartElement​(AbstractNode parent,
                               Key childKey,
                               String type,
                               NativeObject nativeObject)
        Creates the object with the parent, the key of this element, default values and native object to map java script properties.
        Parameters:
        parent - parent node to use to add this element where changed
        childKey - the property name of this element to use to add it to the parent.
        type - chart element type
        nativeObject - native object to map java script properties
    • Method Detail

      • getType

        public final String getType()
        Returns the data set item options.
        Returns:
        the data set item options.
      • getContext

        public final ChartContext getContext()
        Returns the context of the element.
        Returns:
        the context of the element
      • getOptions

        public ChartElementOptions getOptions()
        Returns the element options.
        Returns:
        the element options.
      • isActive

        public final boolean isActive()
        Returns if element is active.
        Returns:
        true if the element is active.
      • isSkipped

        public final boolean isSkipped()
        Returns true if skipped.
        Returns:
        true if skipped.
      • isStop

        public final boolean isStop()
        Returns true if stopped.
        Returns:
        true if stopped.
      • getCenterPoint

        public final IsPoint getCenterPoint()
        Returns the center point of the element.
        Returns:
        the center point of the element.
      • getCenterPoint

        public final IsPoint getCenterPoint​(boolean useFinalPosition)
        Returns the center point of the element.
        Parameters:
        useFinalPosition - if the position must be calculated with final dimensions or also during the animation.
        Returns:
        the center point of the element.
      • getFinalPositionProps

        public final ElementProperties getFinalPositionProps​(Key... keys)
        Returns the list of properties of the element, using the final position.
        Parameters:
        keys - array of keys to request
        Returns:
        an element instance.
      • getFinalPositionProps

        public final ElementProperties getFinalPositionProps​(List<Key> keys)
        Returns the list of properties of the element, using the final position.
        Parameters:
        keys - list of keys to request
        Returns:
        an element instance.
      • nativeObject

        public NativeObject nativeObject()
        Returns the native object instance.
        Returns:
        the native object instance.