log.println("setting TableOperation with parameter ROW");
oObj.setTableOperation(CRA.getRangeAddress(), TableOperationMode.ROW,
CA.getCellAddress(), CA2.getCellAddress());
log.println("checking values");
cellCoords = new Point[] {
new Point(1, 1), new Point(2, 1), new Point(3, 1)
};
cellValues = new double[] { 5, 10, 15 };
res &= checkValues(cellCoords, cellValues);
log.println("filling cells");
fillCells();
log.println("setting TableOperation with parameter COLUMN");
oObj.setTableOperation(CRA.getRangeAddress(),
TableOperationMode.COLUMN, CA.getCellAddress(),
CA2.getCellAddress());
log.println("checking values");
cellCoords = new Point[] {
new Point(1, 1), new Point(1, 2), new Point(1, 3)
};
cellValues = new double[] { 12, 24, 36 };
res &= checkValues(cellCoords, cellValues);
if (both) {
log.println("filling cells");
fillCells();
log.println("setting TableOperation with parameter BOTH");
oObj.setTableOperation(CRA.getRangeAddress(),
TableOperationMode.BOTH,
CA.getCellAddress(), CA2.getCellAddress());
log.println("checking values");
cellCoords = new Point[] {
new Point(1, 1), new Point(2, 2), new Point(3, 3)
};
cellValues = new double[] { 17, 34, 51 };
res &= checkValues(cellCoords, cellValues);
}