class PositionListener
extends java.awt.event.MouseAdapter
Modifier and Type | Field and Description |
---|---|
private int |
col |
private Mediator |
mediator |
private int |
row |
Constructor and Description |
---|
PositionListener(int row,
int col,
Mediator mediator)
Construct the listener.
|
Modifier and Type | Method and Description |
---|---|
void |
mouseClicked(java.awt.event.MouseEvent e)
Handle a mouse click on the position whose coordinates where set
at construction.
|
private int row
private int col
private Mediator mediator
PositionListener(int row, int col, Mediator mediator)
row
- The row of the position target of the eventcol
- The colums of the position target of the eventmediator
- The mediator of the positionspublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class java.awt.event.MouseAdapter