public class TextTable extends Object
Constructor and Description |
---|
TextTable(int width)
TextTable constructor.
|
Modifier and Type | Method and Description |
---|---|
TextTable |
addIntegralColumn(boolean rightAlign,
int trailingSpaces,
boolean autoFillZeros)
Add a integer column.
|
void |
addRow(List<Object> objects)
Add a row.
|
void |
addRow(Object... objects)
Add a row.
|
TextTable |
addStringColumn(boolean rightAlign,
int leadingSpaces,
boolean wrapString)
Add String column.
|
static void |
main(String... strings) |
void |
printTable()
Prints the table as console output.
|
public TextTable(int width)
width
- public TextTable addStringColumn(boolean rightAlign, int leadingSpaces, boolean wrapString)
rightAlign
- leadingSpaces
- wrapString
- public TextTable addIntegralColumn(boolean rightAlign, int trailingSpaces, boolean autoFillZeros)
rightAlign
- trailingSpaces
- autoFillZeros
- public void addRow(Object... objects)
objects
- public void addRow(List<Object> objects)
objects
- public void printTable()
public static void main(String... strings)
Copyright © 2015. All rights reserved.