Interface DrawingPanel.DPKeyEventHandler
- 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 key events that occur in a DrawingPanel.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onKeyEvent
(char keyCode) Called when a key event occurs involving the given key character in the drawing panel window.
-
Method Details
-
onKeyEvent
void onKeyEvent(char keyCode) Called when a key event occurs involving the given key character in the drawing panel window.- Parameters:
keyCode
- char value that was typed
-