R/TableCellRanges.R
TableCellRanges.RdThe `TableCellRanges` class contains a list of cell ranges and provides basic utility methods such as finding intersecting ranges to support the functioning of the `BasicTable` class.
R6Class object.
rangesA list of cell ranges - where each element in the list is another list containing the range extent.
new()Create a new `TableCellRanges` object.
TableCellRanges$new(parentTable)
parentTableOwning table.
No return value.
addRange()Add a cell range to the list of cell ranges. It is not necessary to specify all parameters. rFrom and cFrom must be specified. Only one of rSpan and rTo needs to be specified. Only one of cSpan and cTo needs to be specified.
TableCellRanges$addRange( rFrom = NULL, cFrom = NULL, rSpan = NULL, cSpan = NULL, rTo = NULL, cTo = NULL )
rFromRow number of the top-left cell in the cell range.
cFromColumn number of the top-left cell in the cell range.
rSpanNumber of rows spanned by the cell range.
cSpanNumber of columns spanned by the cell range.
rToRow number of the bottom-right cell in the cell range.
cToColumn number of the bottom-right cell in the cell range.
No return value.
findIntersectingRange()Find a cell range in the list of cell ranges that intersects with the specified cell range. It is not necessary to specify all parameters. rFrom and cFrom must be specified. Only one of rSpan and rTo needs to be specified. Only one of cSpan and cTo needs to be specified.
TableCellRanges$findIntersectingRange( rFrom = NULL, cFrom = NULL, rSpan = NULL, cSpan = NULL, rTo = NULL, cTo = NULL )
rFromRow number of the top-left cell in the cell range.
cFromColumn number of the top-left cell in the cell range.
rSpanNumber of rows spanned by the cell range.
cSpanNumber of columns spanned by the cell range.
rToRow number of the bottom-right cell in the cell range.
cToColumn number of the bottom-right cell in the cell range.
No return value.
deleteRange()Delete the cell range from the list that contains the specified cell.
TableCellRanges$deleteRange(r = NULL, c = NULL)
rRow number of a cell in the cell range to be deleted.
cColumn number of a cell in the cell range to be deleted.
No return value.
clear()Clear the list of cell ranges.
TableCellRanges$clear()
No return value.
updateAfterRowInsert()Internal use only.
TableCellRanges$updateAfterRowInsert(r = NULL)
rRow number.
No return value.
updateAfterRowDelete()Internal use only.
TableCellRanges$updateAfterRowDelete(r = NULL)
rRow number.
No return value.
updateAfterColumnInsert()Internal use only.
TableCellRanges$updateAfterColumnInsert(c = NULL)
cColumn number.
No return value.
updateAfterColumnDelete()Internal use only.
TableCellRanges$updateAfterColumnDelete(c = NULL)
cColumn number.
No return value.
asList()Return the contents of this object as a list for debugging.
TableCellRanges$asList()
A list of various object properties.
asJSON()Return the contents of this object as JSON for debugging.
TableCellRanges$asJSON()
A JSON representation of various object properties.
clone()The objects of this class are cloneable with this method.
TableCellRanges$clone(deep = FALSE)
deepWhether to make a deep clone.
# TableCellRanges objects are never created outside of the BasicTable class. # For examples of working with merged cells, see the Introduction vignette.