public final class SimpleTableFormatter extends AbstractTableFormatter implements TableFormatter
AbstractTableFormatter.CellData
ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, VALIGN_BOTTOM, VALIGN_CENTER, VALIGN_DEFAULT, VALIGN_TOP
Constructor and Description |
---|
SimpleTableFormatter()
Constructor
|
SimpleTableFormatter(boolean border)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getFormattedRow(int rowIndex) |
java.lang.String[] |
getFormattedTable() |
int |
getTableHeight() |
int |
getTableWidth() |
addLine, addLine, getColumnCount, getColumnWidth, getFormattedCell, getRowCount, getRowHeight, nextCell, nextCell, nextRow
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLine, addLine, getColumnCount, getColumnWidth, getFormattedCell, getRowCount, getRowHeight, nextCell, nextCell, nextRow
public SimpleTableFormatter()
public SimpleTableFormatter(boolean border)
border
- Print rows/tables with borderspublic int getTableWidth()
getTableWidth
in interface TableFormatter
getTableWidth
in class AbstractTableFormatter
public int getTableHeight()
getTableHeight
in interface TableFormatter
getTableHeight
in class AbstractTableFormatter
public java.lang.String[] getFormattedRow(int rowIndex)
getFormattedRow
in interface TableFormatter
public java.lang.String[] getFormattedTable()
getFormattedTable
in interface TableFormatter