|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SketchPadListener
The listener interface for receiving "interesting" events (mouse click, mouse drag, key pressed and key typed) on a component. The class that is interested in processing these events either implements this interface (and all the methods it contains) or extends the class implementing them (overriding only the methods of interest).
Method Summary | |
---|---|
void |
keyPressed(int c)
Invoked when a key has been pressed |
void |
keyTyped(char c)
Invoked when a key has been typed |
void |
mouseClicked(double x,
double y)
Invoked when the mouse button has been clicked (pressed and released). |
void |
mouseDragged(double x,
double y)
Invoked when a mouse button is pressed on a component and then dragged. |
Method Detail |
---|
void mouseClicked(double x, double y)
void mouseDragged(double x, double y)
mouseDragged
events will continue to be delivered to the
component where the drag originated until the mouse button is released
void keyPressed(int c)
void keyTyped(char c)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |