public interface AT_ColumnWidthCalculator
Calculates the width of columns for an AsciiTable.
| Modifier and Type | Method and Description |
|---|---|
default int[] |
calculateColumnWidths(LinkedList<AT_Row> rows,
int colNumbers,
AT_Context ctx)
Returns the width of each column in an array, column one being [0] and so on.
|
int[] |
calculateColumnWidths(LinkedList<AT_Row> rows,
int colNumbers,
int tableWidth)
Returns the width of each column in an array, column one being [0] and so on.
|
default int[] calculateColumnWidths(LinkedList<AT_Row> rows, int colNumbers, AT_Context ctx)
Returns the width of each column in an array, column one being [0] and so on.
rows - the table rows with rules and contentcolNumbers - number of columns in the tablectx - the original table context, the required width is taken from this contextint[] calculateColumnWidths(LinkedList<AT_Row> rows, int colNumbers, int tableWidth)
Returns the width of each column in an array, column one being [0] and so on.
rows - the table rows with rules and contentcolNumbers - number of columns in the tabletableWidth - required overall table widthCopyright © 2014–2017. All rights reserved.