Interface DrawingPanel.DPMouseEventHandler
- Enclosing class:
DrawingPanel
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This functional interface is provided to allow Java 8 clients to write
lambda functions to handle mouse events that occur in a DrawingPanel.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonMouseEvent(int x, int y) Called when a mouse event occurs at the given (x, y) position in the drawing panel window.
-
Method Details
-
onMouseEvent
void onMouseEvent(int x, int y) Called when a mouse event occurs at the given (x, y) position in the drawing panel window.- Parameters:
x- x-coordinate at which the event occurredy- y-coordinate at which the event occurred
-