Interface Mouse

All Superinterfaces:
Positionable

public interface Mouse extends Positionable
Represents the mouse pointer.
  • Method Details

    • getButton

      Button getButton(int index)
      Getter for the button corresponding to the given index
      Parameters:
      index - (int): given index
      Returns:
      (Button): button corresponding of the state of the given index button
    • getLeftButton

      default Button getLeftButton()
      Returns:
      (Button): the left button (by default index = 0)
    • getMiddleButton

      default Button getMiddleButton()
      Returns:
      (Button): the Middle button (by default index = 1)
    • getRightButton

      default Button getRightButton()
      Returns:
      (Button): the right button (by default index = 2)
    • getTransform

      default Transform getTransform()
      Specified by:
      getTransform in interface Positionable
      Returns:
      (Transform): affine transform, not null