Package doodlepad
Interface PadMouseListener
public interface PadMouseListener
The interface to be implemented when handling PadMouseListener events.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onMouseClicked
(double x, double y, int button) The onMouseClicked method is invoked by PadMouseListenersvoid
onMouseDoubleClicked
(double x, double y, int button) The onMouseDoubleClicked method is invoked by PadMouseListenersvoid
onMouseDragged
(double x, double y, int button) The onMouseDragged method is invoked by PadMouseListenersvoid
onMouseEntered
(double x, double y, int button) The onMouseEntered method is invoked by PadMouseListenersvoid
onMouseExited
(double x, double y, int button) The onMouseExited method is invoked by PadMouseListenersvoid
onMouseMoved
(double x, double y, int button) The onMouseMoved method is invoked by PadMouseListenersvoid
onMousePressed
(double x, double y, int button) The onMousePressed method is invoked by PadMouseListenersvoid
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 occurredy
- y-position of the mouse when event occurredbutton
- 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 occurredy
- y-position of the mouse when event occurredbutton
- 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 occurredy
- y-position of the mouse when event occurredbutton
- 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 occurredy
- y-position of the mouse when event occurredbutton
- 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 occurredy
- y-position of the mouse when event occurredbutton
- 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 occurredy
- y-position of the mouse when event occurredbutton
- 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 occurredy
- y-position of the mouse when event occurredbutton
- 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 occurredy
- y-position of the mouse when event occurredbutton
- Integer indicating button pressed during event.
-