Package rma.swing.print
Class DocumentRenderer
java.lang.Object
rma.swing.print.DocumentRenderer
- All Implemented Interfaces:
Printable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected JEditorPane
protected double
protected double
protected PageFormat
protected PrinterJob
protected boolean
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
int
print
(Graphics graphics, PageFormat pageFormat, int pageIndex) void
print
(JEditorPane jedPane) void
print
(HTMLDocument htmlDocument) void
print
(PlainDocument plainDocument) protected void
protected boolean
printView
(Graphics2D graphics2D, Shape allocation, View view) protected void
setContentType
(String type) protected void
setDocument
(String type, Document document) void
setDocument
(JEditorPane jedPane) void
setDocument
(HTMLDocument htmlDocument) void
setDocument
(PlainDocument plainDocument) void
setScaleWidthToFit
(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)
-