The row whose slot (row + extra) contains y; rows of height 0 are skipped. Above the first row: 0, below the
last: the last row, without rows: -1. O(1) for constant heights without extras, otherwise O(log n).
px from the top of the first row
the row index
Changes the extra height behind one row that already has one (see setExtras).
the row
the new extra height (> 0)
false if the row has no extra or the height did not change
Sets the extra heights (e.g. detail rows) behind rows. Unsorted input is fine; heights of the same row add up; indices outside the rows and heights ≤ 0 are ignored. Replaces all previous extras.
the rows with an extra height below them
the extra heights (same order as rowIndices)
Sets the rows. Prefix sums of variable heights are built lazily on the first access. Extras behind rows that no longer exist are dropped.
number of rows
height of a row (called only for variable heights)
Optional constantHeight: numberthe height of every row, if they are all equal (AreaModelIf.getConstantRowHeight)
Vertical positions of the body rows: the row heights as prefix sums plus optional extra heights behind single rows (the detail rows of master/detail). DOM-free; the table keeps one instance for its body (RenderScope.getBodyRowTop, RenderScope.getBodyRowIndexAtY).
i * h), no array.Float64ArrayofrowCount + 1prefix sums, built lazily on the first access after setRows – then getTop is O(1) and findIndexAt O(log n) (before 1.1.97 the table summed the heights of all rows above the viewport in every scroll frame).The slot of a row is the row plus its extra height below it:
getTop(i + 1) = getTop(i) + getRowHeight(i) + getExtraHeight(i).Example
Since
1.1.97