public interface MouseListener
extends java.util.EventListener
Modifier and Type | Method and Description |
---|---|
void |
mouseDragged(GameGrid gg,
int x,
int y)
Called when the left mouse is dragged .
|
void |
mousePressed(GameGrid gg,
int x,
int y)
Called when the left mouse button is pressed.
|
void |
mouseReleased(GameGrid gg,
int x,
int y)
Called when the left mouse button is released.
|
void mousePressed(GameGrid gg, int x, int y)
gg
- a reference to the GameGridx
- the x-coordinate of the mouse cursory
- the y-coordinate of the mouse cursorvoid mouseReleased(GameGrid gg, int x, int y)
gg
- a reference to the GameGridx
- the x-coordinate of the mouse cursory
- the y-coordinate of the mouse cursorvoid mouseDragged(GameGrid gg, int x, int y)
gg
- a reference to the GameGridx
- the x-coordinate of the mouse cursory
- the y-coordinate of the mouse cursor