public interface AT_Renderer
extends IsTableRenderer
Standard renderer for AsciiTable.
| Modifier and Type | Method and Description |
|---|---|
static AT_Renderer |
create()
Creates a new renderer.
|
default AT_ColumnWidthCalculator |
getCWC()
Returns the column width calculator for the rendered.
|
String |
getLineSeparator()
Returns the current set line separator.
|
default String |
render(LinkedList<AT_Row> rows,
int colNumbers,
AT_Context ctx)
Renders an
AsciiTable. |
default String |
render(LinkedList<AT_Row> rows,
int colNumbers,
AT_Context ctx,
int width)
Renders an
AsciiTable. |
default Collection<StrBuilder> |
renderAsCollection(LinkedList<AT_Row> rows,
int colNumbers,
AT_Context ctx)
Renders an
AsciiTable. |
default Collection<StrBuilder> |
renderAsCollection(LinkedList<AT_Row> rows,
int colNumbers,
AT_Context ctx,
int width)
Renders an
AsciiTable. |
AT_Renderer |
setCWC(AT_ColumnWidthCalculator cwc)
Sets the column width calculator for the rendered.
|
AT_Renderer |
setLineSeparator(String separator)
Sets a new line separator for the renderer, overwriting any separator a table defines.
|
static AT_Renderer create()
Creates a new renderer.
default AT_ColumnWidthCalculator getCWC()
Returns the column width calculator for the rendered.
String getLineSeparator()
Returns the current set line separator.
default String render(LinkedList<AT_Row> rows, int colNumbers, AT_Context ctx)
Renders an AsciiTable.
rows - table rows to render, cannot be nullcolNumbers - number of columns in the tablectx - context of the original table with relevant settings, cannot be null{@link - NullPointerException} if rows or context where nulldefault String render(LinkedList<AT_Row> rows, int colNumbers, AT_Context ctx, int width)
Renders an AsciiTable.
rows - table rows to render, cannot be nullcolNumbers - number of columns in the tablectx - context of the original table with relevant settings, cannot be nullwidth - maximum line width, excluding any extra padding{@link - NullPointerException} if rows or context where nulldefault Collection<StrBuilder> renderAsCollection(LinkedList<AT_Row> rows, int colNumbers, AT_Context ctx)
Renders an AsciiTable.
rows - table rows to render, cannot be nullcolNumbers - number of columns in the tablectx - context of the original table with relevant settings, cannot be nullStrBuilder{@link - NullPointerException} if rows or context where nulldefault Collection<StrBuilder> renderAsCollection(LinkedList<AT_Row> rows, int colNumbers, AT_Context ctx, int width)
Renders an AsciiTable.
rows - table rows to render, cannot be nullcolNumbers - number of columns in the tablectx - context of the original table with relevant settings, cannot be nullwidth - maximum line width, excluding any extra paddingStrBuilder{@link - NullPointerException} if rows or context where nullAT_Renderer setCWC(AT_ColumnWidthCalculator cwc)
Sets the column width calculator for the rendered.
cwc - new calculator, ignored if nullAT_Renderer setLineSeparator(String separator)
Sets a new line separator for the renderer, overwriting any separator a table defines.
separator - the new separator, ignored if blankCopyright © 2014–2017. All rights reserved.