Package eu.bandm.tools.format
Class Format.FormatPrinter
java.lang.Object
eu.bandm.tools.format.Format.FormatPrinter
- Enclosing class:
Format
Central Visitor for formatted printing. Is constructed with a
PrintWriter and a maximal page width. Then
startPrinting(Format)
is called to execute formatted printing.-
Constructor Summary
ConstructorsConstructorDescriptionFormatPrinter(PrintWriter p, int width) Sets the print target and the page width. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadvance(int cnt) Output spacs and increment the column counter by the given number.intgetPos()Public getter method for the current (=next-to-write) column.voidCentral service access point, prints the complete format to the output with construction.
-
Constructor Details
-
FormatPrinter
Sets the print target and the page width.
-
-
Method Details
-
getPos
public int getPos()Public getter method for the current (=next-to-write) column. -
startPrinting
Central service access point, prints the complete format to the output with construction. DOX FIXME exceptions ? -
advance
protected void advance(int cnt) Output spacs and increment the column counter by the given number.
-