Class LegendHitBoxItem


  • public final class LegendHitBoxItem
    extends SizeItem
    This is a wrapper of the CHART.JS item which contains the legends hit box.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getLeft

        public double getLeft()
        Returns the padding left in pixel.
        Returns:
        the padding left in pixel.
      • getTop

        public double getTop()
        Returns the padding top in pixel.
        Returns:
        the padding top in pixel.
      • isInside

        public boolean isInside​(NativeAbstractMouseEvent event)
        Returns true if the chart event is inside of this box, otherwise false.
        Parameters:
        event - event to check if inside the box
        Returns:
        true if the chart event is inside of this box, otherwise false
      • 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