R/TableCellRanges.R
TableCellRanges.Rd
The `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.
ranges
A 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)
parentTable
Owning 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 )
rFrom
Row number of the top-left cell in the cell range.
cFrom
Column number of the top-left cell in the cell range.
rSpan
Number of rows spanned by the cell range.
cSpan
Number of columns spanned by the cell range.
rTo
Row number of the bottom-right cell in the cell range.
cTo
Column 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 )
rFrom
Row number of the top-left cell in the cell range.
cFrom
Column number of the top-left cell in the cell range.
rSpan
Number of rows spanned by the cell range.
cSpan
Number of columns spanned by the cell range.
rTo
Row number of the bottom-right cell in the cell range.
cTo
Column 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)
r
Row number of a cell in the cell range to be deleted.
c
Column 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)
r
Row number.
No return value.
updateAfterRowDelete()
Internal use only.
TableCellRanges$updateAfterRowDelete(r = NULL)
r
Row number.
No return value.
updateAfterColumnInsert()
Internal use only.
TableCellRanges$updateAfterColumnInsert(c = NULL)
c
Column number.
No return value.
updateAfterColumnDelete()
Internal use only.
TableCellRanges$updateAfterColumnDelete(c = NULL)
c
Column 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)
deep
Whether 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.