Class Format.FormatPrinter

java.lang.Object
eu.bandm.tools.format.Format.FormatPrinter
Enclosing class:
Format

public static class Format.FormatPrinter extends Object
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

    Constructors
    Constructor
    Description
    FormatPrinter(PrintWriter p, int width)
    Sets the print target and the page width.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    advance(int cnt)
    Output spacs and increment the column counter by the given number.
    int
    Public getter method for the current (=next-to-write) column.
    void
    Central service access point, prints the complete format to the output with construction.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FormatPrinter

      public FormatPrinter(PrintWriter p, int width)
      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

      public void startPrinting(Format f)
      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.