Package codedraw.events
Class MouseUpEventArgs
java.lang.Object
codedraw.events.MouseUpEventArgs
This argument is given exactly once when a mouse button is released.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MouseUpEventArgs
-
-
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.
-
getMouseButton
Gets the type of mouse button that was pressed to trigger the event.- Returns:
- a mouse button.
-