Class MouseMoveEventArgs

java.lang.Object
codedraw.events.MouseMoveEventArgs

public class MouseMoveEventArgs extends Object
This argument is given continuously while the mouse is being moved.
  • Constructor Details

    • MouseMoveEventArgs

      public MouseMoveEventArgs(MouseEvent e)
  • 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.