Table of Contents
A utility class to print something in Java. 3rd party, but with no particular license.
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