gvprojects.igel.view
Interface CellActionListener


public interface CellActionListener

Listens for actions on cells in the GUI

Author:
Zachary Kurmas

Method Summary
 void cellClicked(int row, int column)
          Called when the user clicks on a cell
 void cellDragEntered(int row, int column, int sourceRow, int sourceColumn)
          Called when the mouse is dragged into a cell (i.e., enters the cell with the button pushed).
 void cellEntered(int row, int column)
          Called when the mouse enters a cell
 void cellExited(int row, int column)
          Called when the mouse exits a cell
 void cellPressed(int row, int column)
          Called when a user presses the mouse in a cell
 void cellReleased(int releasedRow, int releasedColumn, int pressedRow, int pressedColumn)
          Called when the user releases the mouse on a cell.
 

Method Detail

cellEntered

void cellEntered(int row,
                 int column)
Called when the mouse enters a cell

Parameters:
row - the row of the cell entered
column - the column of the cell entered

cellDragEntered

void cellDragEntered(int row,
                     int column,
                     int sourceRow,
                     int sourceColumn)
Called when the mouse is dragged into a cell (i.e., enters the cell with the button pushed).

Parameters:
row - the row of the cell being entered
column - the column of the cell being entered
sourceRow - the row of the cell over which the mouse was pressed
sourceColumn - the column of the cell over which the mouse was pressed

cellExited

void cellExited(int row,
                int column)
Called when the mouse exits a cell

Parameters:
row - the row of the cell exited
column - the column of the cell exited

cellClicked

void cellClicked(int row,
                 int column)
Called when the user clicks on a cell

Parameters:
row - the row of the cell clicked on
column - the column of the cell clicked on

cellPressed

void cellPressed(int row,
                 int column)
Called when a user presses the mouse in a cell

Parameters:
row - the row of the cell clicked on
column - the column of the cell clicked on

cellReleased

void cellReleased(int releasedRow,
                  int releasedColumn,
                  int pressedRow,
                  int pressedColumn)
Called when the user releases the mouse on a cell. Note: row and column refer to the cell over which the mouse was released. This is different from the default Java Swing behavior that will give the cell over which the mouse was originally pressed.

Parameters:
releasedRow - the row of the cell over which hte mouse was positioned when released
releasedColumn - the column of the cell over which the mouse was positioned when released
pressedRow - the row of the cell over which hte mouse was positioned when released
pressedColumn - the column of the cell over which the mouse was positioned when released