Interface ComponentMouseButtonListener

    • Method Detail

      • mouseDown

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

        default boolean mouseUp​(Component component,
                                Mouse.Button button,
                                int x,
                                int y)
        Called when a mouse button is released over a component.
        Parameters:
        component - Component user the mouse pointer.
        button - Which mouse button that was released.
        x - X position of the mouse.
        y - Y position of the mouse.
        Returns:
        true to consume the event; false to allow it to propagate (default).
      • mouseClick

        default boolean mouseClick​(Component component,
                                   Mouse.Button button,
                                   int x,
                                   int y,
                                   int count)
        Called when a mouse button is clicked over a component.
        Parameters:
        component - Component user the mouse pointer.
        button - Which mouse button was clicked.
        x - X position of the mouse.
        y - Y position of the mouse.
        count - Number of clicks (1 = single click, 2 = double click, etc.).
        Returns:
        true to consume the event; false to allow it to propagate (default).