Static maxUpper limit for the cells of the selected ranges (Ctrl+A on millions of rows). Like CopyService.maxCopyCells: above it nothing is computed.
SelectionAggregator.maxCells = 2_000_000;
the table model (body rows, columns, visibility)
the selection; none → all zero
the aggregates of the selected cells
Computes count, sum, average, minimum and maximum of the selected body cells (SelectionAggregatesIf) – what TableApi.getSelectionAggregates returns, e.g. for a status bar under the table.
Counted are the selected cells of the visible data columns (no row numbers, no checkbox column); the numbers are the cell values (
getValueAt) of typenumber. Negative ranges (Ctrl/⌘-click) are respected. A selection whose ranges cover more than maxCells cells is not computed (capped: true).Example
Since
1.1.94