Package doodlepad

Interface ShapeMouseListener


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

    Modifier and Type
    Method
    Description
    Get access to the implementing Shape
    void
    mouseClicked(double x, double y, int button)
    The mouseClicked method is invoked by PadMouseListeners
    void
    mouseDoubleClicked(double x, double y, int button)
    The mouseDoubleClicked method is invoked by PadMouseListeners
    void
    mouseDragged(double x, double y, int button)
    The mouseDragged method is invoked by ShapeMouseListener
    void
    mouseEntered(double x, double y, int button)
    The mouseEntered method is invoked by PadMouseListeners
    void
    mouseExited(double x, double y, int button)
    The mouseExited method is invoked by PadMouseListeners
    void
    mouseMoved(double x, double y, int button)
    The mouseMoved method is invoked by ShapeMouseListener
    void
    mousePressed(double x, double y, int button)
    The mousePressed method is invoked by ShapeMouseListener
    void
    mouseReleased(double x, double y, int button)
    The mouseReleased method is invoked by ShapeMouseListener
  • Method Details

    • getShape

      Shape getShape()
      Get access to the implementing Shape
      Returns:
      The Shape that implements the interface.
    • mousePressed

      void mousePressed(double x, double y, int button)
      The mousePressed method is invoked by ShapeMouseListener
      Parameters:
      x - x-coordinate of event
      y - y-coordinate of event
      button - button pressed during event
    • mouseReleased

      void mouseReleased(double x, double y, int button)
      The mouseReleased method is invoked by ShapeMouseListener
      Parameters:
      x - x-coordinate of event
      y - y-coordinate of event
      button - button pressed during event
    • mouseMoved

      void mouseMoved(double x, double y, int button)
      The mouseMoved method is invoked by ShapeMouseListener
      Parameters:
      x - x-coordinate of event
      y - y-coordinate of event
      button - button pressed during event
    • mouseDragged

      void mouseDragged(double x, double y, int button)
      The mouseDragged method is invoked by ShapeMouseListener
      Parameters:
      x - x-coordinate of event
      y - y-coordinate of event
      button - button pressed during event
    • mouseClicked

      void mouseClicked(double x, double y, int button)
      The mouseClicked method is invoked by PadMouseListeners
      Parameters:
      x - x-coordinate of event
      y - y-coordinate of event
      button - button pressed during event
    • mouseDoubleClicked

      void mouseDoubleClicked(double x, double y, int button)
      The mouseDoubleClicked method is invoked by PadMouseListeners
      Parameters:
      x - x-coordinate of event
      y - y-coordinate of event
      button - button pressed during event
    • mouseEntered

      void mouseEntered(double x, double y, int button)
      The mouseEntered method is invoked by PadMouseListeners
      Parameters:
      x - x-coordinate of event
      y - y-coordinate of event
      button - button pressed during event
    • mouseExited

      void mouseExited(double x, double y, int button)
      The mouseExited method is invoked by PadMouseListeners
      Parameters:
      x - x-coordinate of event
      y - y-coordinate of event
      button - button pressed during event