Package doodlepad

Interface PadMouseListener


public interface PadMouseListener
The interface to be implemented when handling PadMouseListener events.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onMouseClicked(double x, double y, int button)
    The onMouseClicked method is invoked by PadMouseListeners
    void
    onMouseDoubleClicked(double x, double y, int button)
    The onMouseDoubleClicked method is invoked by PadMouseListeners
    void
    onMouseDragged(double x, double y, int button)
    The onMouseDragged method is invoked by PadMouseListeners
    void
    onMouseEntered(double x, double y, int button)
    The onMouseEntered method is invoked by PadMouseListeners
    void
    onMouseExited(double x, double y, int button)
    The onMouseExited method is invoked by PadMouseListeners
    void
    onMouseMoved(double x, double y, int button)
    The onMouseMoved method is invoked by PadMouseListeners
    void
    onMousePressed(double x, double y, int button)
    The onMousePressed method is invoked by PadMouseListeners
    void
    onMouseReleased(double x, double y, int button)
    The onMouseReleased method is invoked by PadMouseListeners
  • Method Details

    • onMousePressed

      void onMousePressed(double x, double y, int button)
      The onMousePressed method is invoked by PadMouseListeners
      Parameters:
      x - x-position of the mouse when event occurred
      y - y-position of the mouse when event occurred
      button - Integer indicating button pressed during event.
    • onMouseReleased

      void onMouseReleased(double x, double y, int button)
      The onMouseReleased method is invoked by PadMouseListeners
      Parameters:
      x - x-position of the mouse when event occurred
      y - y-position of the mouse when event occurred
      button - Integer indicating button pressed during event.
    • onMouseMoved

      void onMouseMoved(double x, double y, int button)
      The onMouseMoved method is invoked by PadMouseListeners
      Parameters:
      x - x-position of the mouse when event occurred
      y - y-position of the mouse when event occurred
      button - Integer indicating button pressed during event.
    • onMouseDragged

      void onMouseDragged(double x, double y, int button)
      The onMouseDragged method is invoked by PadMouseListeners
      Parameters:
      x - x-position of the mouse when event occurred
      y - y-position of the mouse when event occurred
      button - Integer indicating button pressed during event.
    • onMouseClicked

      void onMouseClicked(double x, double y, int button)
      The onMouseClicked method is invoked by PadMouseListeners
      Parameters:
      x - x-position of the mouse when event occurred
      y - y-position of the mouse when event occurred
      button - Integer indicating button pressed during event.
    • onMouseDoubleClicked

      void onMouseDoubleClicked(double x, double y, int button)
      The onMouseDoubleClicked method is invoked by PadMouseListeners
      Parameters:
      x - x-position of the mouse when event occurred
      y - y-position of the mouse when event occurred
      button - Integer indicating button pressed during event.
    • onMouseEntered

      void onMouseEntered(double x, double y, int button)
      The onMouseEntered method is invoked by PadMouseListeners
      Parameters:
      x - x-position of the mouse when event occurred
      y - y-position of the mouse when event occurred
      button - Integer indicating button pressed during event.
    • onMouseExited

      void onMouseExited(double x, double y, int button)
      The onMouseExited method is invoked by PadMouseListeners
      Parameters:
      x - x-position of the mouse when event occurred
      y - y-position of the mouse when event occurred
      button - Integer indicating button pressed during event.