java.lang.Object
org.xhtmlrenderer.swt.PrinterRenderer
- All Implemented Interfaces:
org.xhtmlrenderer.extend.UserInterface
A renderer for an SWT Printer. Instances must be disposed with
dispose().- Author:
- Vianney le Clément
-
Constructor Summary
ConstructorsConstructorDescriptionPrinterRenderer(org.eclipse.swt.printing.Printer printer) PrinterRenderer(org.eclipse.swt.printing.Printer printer, org.xhtmlrenderer.extend.UserAgentCallback uac) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose resources.booleanbooleanbooleanprotected DocumentloadDocument(String uri) protected org.xhtmlrenderer.layout.LayoutContextnewLayoutcontext(org.eclipse.swt.graphics.GC gc) protected org.xhtmlrenderer.render.RenderingContextnewRenderingContext(org.eclipse.swt.graphics.GC gc) voidprint(String url, org.xhtmlrenderer.extend.NamespaceHandler nsh, String jobName, int startPage, int endPage) static voidprint(org.eclipse.swt.printing.PrinterData printerData, String url, org.xhtmlrenderer.extend.NamespaceHandler nsh, String jobName) static voidprint(org.eclipse.swt.printing.PrinterData printerData, Document doc, String url, org.xhtmlrenderer.extend.NamespaceHandler nsh, String jobName) static voidprint(org.eclipse.swt.printing.Printer printer, String url, org.xhtmlrenderer.extend.NamespaceHandler nsh, String jobName, int startPage, int endPage) static voidprint(org.eclipse.swt.printing.Printer printer, Document doc, String url, org.xhtmlrenderer.extend.NamespaceHandler nsh, String jobName, int startPage, int endPage) voidprint(Document doc, String url, org.xhtmlrenderer.extend.NamespaceHandler nsh, String jobName, int startPage, int endPage) static voidprintDialog(org.eclipse.swt.widgets.Shell shell, String url, org.xhtmlrenderer.extend.NamespaceHandler nsh, String jobName) static voidprintDialog(org.eclipse.swt.widgets.Shell shell, Document doc, String url, org.xhtmlrenderer.extend.NamespaceHandler nsh, String jobName)
-
Constructor Details
-
PrinterRenderer
public PrinterRenderer(org.eclipse.swt.printing.Printer printer) -
PrinterRenderer
public PrinterRenderer(org.eclipse.swt.printing.Printer printer, org.xhtmlrenderer.extend.UserAgentCallback uac)
-
-
Method Details
-
dispose
public void dispose()Dispose resources. This does NOT dispose the attachedPrinter. -
newLayoutcontext
protected org.xhtmlrenderer.layout.LayoutContext newLayoutcontext(org.eclipse.swt.graphics.GC gc) - Returns:
- a new
LayoutContext
-
newRenderingContext
protected org.xhtmlrenderer.render.RenderingContext newRenderingContext(org.eclipse.swt.graphics.GC gc) -
print
-
print
-
loadDocument
-
isActive
- Specified by:
isActivein interfaceorg.xhtmlrenderer.extend.UserInterface
-
isFocus
- Specified by:
isFocusin interfaceorg.xhtmlrenderer.extend.UserInterface
-
isHover
- Specified by:
isHoverin interfaceorg.xhtmlrenderer.extend.UserInterface
-
print
-
print
-
print
-
print
-
printDialog
-
printDialog
-