Package codedraw

Class MouseLeaveEvent

java.lang.Object
codedraw.Event
codedraw.MouseLeaveEvent

public class MouseLeaveEvent extends Event
This argument is given every time the mouse leaves the canvas.
  • Method Details

    • getX

      public int getX()
      Gets the distance in pixel from the left side of the canvas to the mouse.
      Returns:
      the distance in pixel.
    • getY

      public int getY()
      Gets the distance in pixel from the top side of the canvas to the mouse.
      Returns:
      the distance in pixel.
    • toString

      public String toString()
      Overrides:
      toString in class Object