public void setCellIndex(cellIndexTypes indexType, int index) { switch (indexType) { case cellIndexTypes.rowIndex: cellIndex[0] = index; break; case cellIndexTypes.columnIndex: cellIndex[1] = index; break; } }
public int getCellIndex(cellIndexTypes indexType) { int index = 0; switch (indexType) { case cellIndexTypes.rowIndex: index = cellIndex[0]; break; case cellIndexTypes.columnIndex: index = cellIndex[1]; break; } return(index); }