SectionWithColumns

data class SectionWithColumns(rows: List<TableRow>, columnNames: List<String>) : Section

Section with columns of the model summary table.

Constructors

SectionWithColumns
Link copied to clipboard
fun SectionWithColumns(rows: List<TableRow>, columnNames: List<String>)

Functions

columnWidth
Link copied to clipboard
fun columnWidth(column: Int): Int

Calculate the width of the column in the section. It is the maximum width of the column name and all the cells in the column. If section has no column with the given index, returns 0.

format
Link copied to clipboard
fun format(alignedColumnsWidths: List<Int>, tableWidth: Int, columnSeparator: String = " ", lineSeparatorSymbol: Char = '_', thickLineSeparatorSymbol: Char = '='): List<String>

Format section to a list of strings, properly aligned with other sections.

Properties

columnsCount
Link copied to clipboard
val columnsCount: Int

Number of columns in the section.