public abstract class CustomPrinter extends Object implements ICustomPrinter
ICustomPrinter for the custom printers.ICustomPrinter.CellPosition| Modifier and Type | Field and Description |
|---|---|
protected StringBuilder |
builder
Not null
StringBuilder used for the string building |
protected int |
columnCount
Count of column
|
protected int |
columnIndex
Current column index
|
protected int |
columnWidth
Width in character number of a single column
|
protected boolean |
isDrawingTable
True of a table is currently drawn, false otherwise
|
| Modifier | Constructor and Description |
|---|---|
protected |
CustomPrinter(StringBuilder builder)
Main constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendTableValue(Object value)
Add a single value to the table.
|
void |
endTable()
End the table drawing.
|
void |
startTable(int columnWidth,
int columnCount)
Start the drawing of a table.
|
String |
toString()
Return the not null string representation of the data contained by the
ICustomPrinter in its specific format. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitappendTableHeaderValue, appendTableLineSeparator, appendTableTitle, appendTableValue, appendValueprotected StringBuilder builder
StringBuilder used for the string buildingprotected int columnWidth
protected int columnCount
protected boolean isDrawingTable
protected int columnIndex
protected CustomPrinter(StringBuilder builder)
builder - StringBuilder used for the string building.public String toString()
ICustomPrinterICustomPrinter in its specific format.toString in interface ICustomPrintertoString in class ObjectICustomPrinterpublic void startTable(int columnWidth,
int columnCount)
ICustomPrinterstartTable in interface ICustomPrintercolumnWidth - Width in character number of a single column.columnCount - Count of column.public void endTable()
ICustomPrinterendTable in interface ICustomPrinterpublic void appendTableValue(Object value)
ICustomPrinterappendTableValue in interface ICustomPrintervalue - Value to add to the table.Copyright © 2021 CNRS. All rights reserved.