Interface ContainerMouseListener

    • Method Detail

      • mouseMove

        default boolean mouseMove​(Container container,
                                  int x,
                                  int y)
        Called when the mouse is moved over a container.
        Parameters:
        container - The container under the mouse.
        x - The X-position of the mouse.
        y - The Y-position of the mouse.
        Returns:
        true to consume the event; false to allow it to propagate.
      • mouseDown

        default boolean mouseDown​(Container container,
                                  Mouse.Button button,
                                  int x,
                                  int y)
        Called when the mouse is pressed over a container.
        Parameters:
        container - The container under the mouse.
        button - Which button was pressed.
        x - The X-position of the mouse.
        y - The Y-position of the mouse.
        Returns:
        true to consume the event; false to allow it to propagate.
      • mouseUp

        default boolean mouseUp​(Container container,
                                Mouse.Button button,
                                int x,
                                int y)
        Called when the mouse is released over a container.
        Parameters:
        container - The container under the mouse.
        button - Which mouse button was released.
        x - The X-position at the time of release.
        y - The Y-position at the time of release.
        Returns:
        true to consume the event; false to allow it to propagate.
      • mouseWheel

        default boolean mouseWheel​(Container container,
                                   Mouse.ScrollType scrollType,
                                   int scrollAmount,
                                   int wheelRotation,
                                   int x,
                                   int y)
        Called when the mouse wheel is scrolled over a container.
        Parameters:
        container - The container under the mouse.
        scrollType - Which type of scroll happened.
        scrollAmount - How much scrolling was requested.
        wheelRotation - The amount and direction of wheel rotation.
        x - The X-position of the mouse at the time.
        y - The Y-position of the mouse.
        Returns:
        true to consume the event; false to allow it to propagate.