Class ChartAreaNode

  • All Implemented Interfaces:
    IsArea

    public final class ChartAreaNode
    extends BaseBoxItem
    Object which maps the chart area item of CHART.JS chart java script object.
    This is a wrapper of the CHART.JS item with all needed info.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • ChartAreaNode

        public ChartAreaNode​(ChartEnvelop<NativeObject> envelop)
        Creates the item using envelop with the native java script object which contains all properties.
        Parameters:
        envelop - envelop with the native java script object which contains all properties.
    • Method Detail

      • toArea

        public IsArea toArea()
        Creates and returns a IsArea instance, cloning the chart area.
        Returns:
        a IsArea instance, cloning the chart area
      • isInside

        public default boolean isInside​(NativeBaseEvent event)
        Returns true if the chart event is inside of a chart element, otherwise false.
        Parameters:
        event - event to check if inside of a chart element.
        Returns:
        true if the chart event is inside a chart element, otherwise false
      • isInside

        public default boolean isInside​(HasNativeEvent container)
        Returns true if the chart event is inside of this box, otherwise false.
        Parameters:
        container - event container to check if inside the box
        Returns:
        true if the chart event is inside of this box, otherwise false