Interface ComponentMouseWheelListener

    • Method Detail

      • mouseWheel

        boolean mouseWheel​(Component component,
                           Mouse.ScrollType scrollType,
                           int scrollAmount,
                           int wheelRotation,
                           int x,
                           int y)
        Called when the mouse wheel is scrolled over a component.
        Parameters:
        component - Component under the mouse pointer.
        scrollType - What type of scroll was requested on the mouse.
        scrollAmount - Amount of scrolling.
        wheelRotation - Rotation value.
        x - X position of the mouse.
        y - Y position of the mouse.
        Returns:
        true to consume the event; false to allow it to propagate.