public interface TableFormatter
Modifier and Type | Method and Description |
---|---|
void |
close()
Should close the document
|
void |
closeRow()
Should close a table row
|
void |
closeTable()
Should close a table
|
void |
closeTableNoTopTag()
Should close a table without writing a top tag (HTML specific)
|
java.lang.String |
getFileFormat() |
void |
open(java.lang.String name)
Should open a new document containing multiple tables with the given name
|
void |
openRow()
Should open a row
|
void |
openTable(java.lang.String heading)
Should open a table with the given heading
|
boolean |
rowIsOpen() |
void |
setOutput(FileOutput out)
Should set an output file to write the table to
|
void |
setTimePrecision(int tp)
Should set the required precision of time values.
|
boolean |
tableIsOpen() |
int |
timePrecision()
Should return the precision used for time values.
|
void |
writeCell(java.lang.String s,
int spanning)
Should write the given string into a new table cell
|
void |
writeHeading(int i,
java.lang.String s)
Should write the given heading of size i into a new table cell
|
void |
writeHeadingCell(java.lang.String s)
Should write the given heading of default size into a new table cell
|
void |
writeHorizontalRuler()
Writes a horizontal ruler
|
java.lang.String |
writeTime(java.lang.String s)
Should format the given time String and write it into a cell
|
void open(java.lang.String name)
name
- table namevoid close()
void closeRow()
void closeTable()
void closeTableNoTopTag()
void openRow()
void openTable(java.lang.String heading)
heading
- table headingboolean rowIsOpen()
true
if a row is currently open,
false
otherwiseboolean tableIsOpen()
true
if a table is currently open,
false
otherwisevoid writeCell(java.lang.String s, int spanning)
s
- string to writespanning
- number of cells to spanvoid writeHeading(int i, java.lang.String s)
s
- string to writei
- size (must be interpreted in a sensible way).void writeHeadingCell(java.lang.String s)
s
- string to writevoid writeHorizontalRuler()
java.lang.String writeTime(java.lang.String s)
s
- a string containing simulation time in float format.int timePrecision()
void setOutput(FileOutput out)
out
- a desmoj.report.FileOutput to write the table tovoid setTimePrecision(int tp)
tp
- precisionjava.lang.String getFileFormat()