|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.event.MouseAdapter | +--Mediator
This class handles mouse clicks on a position. A position must know the state of other positions in order to know whether it can be occupied. This class serves as a mediator among positions.
Constructor Summary | |
Mediator(Position[][] cell,
int row,
int col)
Construct a position. |
Method Summary | |
void |
mouseClicked(java.awt.event.MouseEvent evt)
Event Handler. |
Methods inherited from class java.awt.event.MouseAdapter |
mouseEntered,
mouseExited,
mousePressed,
mouseReleased |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public Mediator(Position[][] cell, int row, int col)
cell
- The array of positions of the board.row
- The row of the position this listenet listen to.col
- The col of the position this listenet listen to.Method Detail |
public void mouseClicked(java.awt.event.MouseEvent evt)
evt
- The mouse click event of the position
this listener is listening to.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |