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​(BaseNativeEvent 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