public abstract class AbstractTableFormatter extends java.lang.Object implements TableFormatter
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractTableFormatter.CellData |
ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, VALIGN_BOTTOM, VALIGN_CENTER, VALIGN_DEFAULT, VALIGN_TOP
Modifier | Constructor and Description |
---|---|
protected |
AbstractTableFormatter()
Constructor
|
Modifier and Type | Method and Description |
---|---|
TableFormatter |
addLine() |
TableFormatter |
addLine(java.lang.String text) |
int |
getColumnCount() |
int |
getColumnWidth(int columnIndex) |
java.lang.String[] |
getFormattedCell(int rowIndex,
int columnIndex) |
int |
getRowCount() |
int |
getRowHeight(int rowIndex) |
int |
getTableHeight() |
int |
getTableWidth() |
TableFormatter |
nextCell() |
TableFormatter |
nextCell(int align,
int valign) |
TableFormatter |
nextRow() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFormattedRow, getFormattedTable
public final TableFormatter addLine()
addLine
in interface TableFormatter
public final TableFormatter addLine(java.lang.String text)
addLine
in interface TableFormatter
public final TableFormatter nextCell()
nextCell
in interface TableFormatter
public final TableFormatter nextCell(int align, int valign)
nextCell
in interface TableFormatter
public final TableFormatter nextRow()
nextRow
in interface TableFormatter
public int getColumnCount()
getColumnCount
in interface TableFormatter
public final int getRowCount()
getRowCount
in interface TableFormatter
public final int getColumnWidth(int columnIndex)
getColumnWidth
in interface TableFormatter
public final int getRowHeight(int rowIndex)
getRowHeight
in interface TableFormatter
public final java.lang.String[] getFormattedCell(int rowIndex, int columnIndex)
getFormattedCell
in interface TableFormatter
public int getTableWidth()
getTableWidth
in interface TableFormatter
public int getTableHeight()
getTableHeight
in interface TableFormatter