Package rma.swing.print
Class DocumentRenderer
java.lang.Object
rma.swing.print.DocumentRenderer
- All Implemented Interfaces:
Printable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected JEditorPaneprotected doubleprotected doubleprotected PageFormatprotected PrinterJobprotected booleanFields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidintprint(Graphics graphics, PageFormat pageFormat, int pageIndex) voidprint(JEditorPane jedPane) voidprint(HTMLDocument htmlDocument) voidprint(PlainDocument plainDocument) protected voidprotected booleanprintView(Graphics2D graphics2D, Shape allocation, View view) protected voidsetContentType(String type) protected voidsetDocument(String type, Document document) voidsetDocument(JEditorPane jedPane) voidsetDocument(HTMLDocument htmlDocument) voidsetDocument(PlainDocument plainDocument) voidsetScaleWidthToFit(boolean scaleWidth)
-
Field Details
-
currentPage
protected int currentPage -
jeditorPane
-
pageEndY
protected double pageEndY -
pageStartY
protected double pageStartY -
scaleWidthToFit
protected boolean scaleWidthToFit -
pFormat
-
pJob
-
-
Constructor Details
-
DocumentRenderer
public DocumentRenderer()
-
-
Method Details
-
getDocument
-
getScaleWidthToFit
public boolean getScaleWidthToFit() -
pageDialog
public void pageDialog() -
print
-
print
-
print
-
print
-
printDialog
protected void printDialog() -
printView
-
setContentType
-
setDocument
-
setDocument
-
setDocument
-
setDocument
-
setScaleWidthToFit
public void setScaleWidthToFit(boolean scaleWidth)
-