ua.gradsoft.termware.printers
Class AbstractPrettyPrinter
java.lang.Object
ua.gradsoft.termware.printers.AbstractPrinter
ua.gradsoft.termware.printers.AbstractPrettyPrinter
- All Implemented Interfaces:
- IPrettyPrinter, IPrinter
- Direct Known Subclasses:
- TermWarePrinter
public abstract class AbstractPrettyPrinter
- extends AbstractPrinter
- implements IPrettyPrinter
Common functionality for pretty printing.
- See Also:
IPrettyPrinter
|
Field Summary |
protected PrettyPrintWriter |
out_
Child must use API of out_ for output,
to use implemented pretty-printing algorithm. |
out_
protected PrettyPrintWriter out_
- Child must use API of out_ for output,
to use implemented pretty-printing algorithm.
AbstractPrettyPrinter
protected AbstractPrettyPrinter(PrintWriter out,
String outTag)
getPrettyPrintingOut
public final PrettyPrintWriter getPrettyPrintingOut()
getPageWidth
public int getPageWidth()
- Specified by:
getPageWidth in interface IPrettyPrinter
setPageWidth
public void setPageWidth(int width)
- Specified by:
setPageWidth in interface IPrettyPrinter
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize in class Object
- Throws:
Throwable