Chapter 3. Package org.kaiwitte.workbench.printing

Table of Contents

Class DocumentRenderer
Synopsis
Interface PrintTemplateCreator
Synopsis
Interface RecordPrinter
Synopsis
printRecord(MetaRecord, UIConfig, Sequence)
Class RecordPrinterImpl
Synopsis
printRecord(MetaRecord, UIConfig, Sequence)

Class DocumentRenderer

A utility class to print something in Java. 3rd party, but with no particular license.

Synopsis

 public class DocumentRendererimplements Printable {
  protected int currentPage ;
  protected JEditorPane jeditorPane ;
  protected double pageEndY ;
  protected double pageStartY ;
  protected boolean scaleWidthToFit ;
  protected PageFormat pFormat ;
  protected PrinterJob pJob ;
  public DocumentRenderer();
  public static void main(java.lang.String[] args)
    throws IOException;

  public Document getDocument();
  public boolean getScaleWidthToFit();
  public void pageDialog();
  public int print(Graphics graphics,
                   PageFormat pageFormat,
                   int pageIndex);

  public void print(HTMLDocument htmlDocument)
    throws IOException;

  public void print(JEditorPane jedPane)
    throws IOException;

  public void print(PlainDocument plainDocument)
    throws IOException;

  protected void printDialog()
    throws IOException;

  protected boolean printView(Graphics2D graphics2D,
                              Shape allocation,
                              View view);

  protected void setContentType(String type);
  public void setDocument(HTMLDocument htmlDocument);
  public void setDocument(JEditorPane jedPane);
  public void setDocument(PlainDocument plainDocument);
  protected void setDocument(String type,
                             Document document);

  public void setScaleWidthToFit(boolean scaleWidth);
}

Methods inherited from java.lang.Object: clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait

Inheritance Path. java.lang.Object-> org.kaiwitte.workbench.printing.DocumentRenderer