Class PrinterRenderer
java.lang.Object
org.xhtmlrenderer.swt.PrinterRenderer
- All Implemented Interfaces:
UserInterface
A renderer for an SWT Printer. Instances must be disposed with
dispose().-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.eclipse.swt.printing.Printerprivate final SharedContext -
Constructor Summary
ConstructorsConstructorDescriptionPrinterRenderer(org.eclipse.swt.printing.Printer printer) PrinterRenderer(org.eclipse.swt.printing.Printer printer, UserAgentCallback uac) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose resources.booleanGets the active attribute of the UserInterface objectbooleanGets the focus attribute of the UserInterface objectbooleanGets the hover attribute of the UserInterface objectprotected @Nullable DocumentloadDocument(String uri) protected LayoutContextnewLayoutcontext(org.eclipse.swt.graphics.GC gc) protected RenderingContextnewRenderingContext(org.eclipse.swt.graphics.GC gc) voidprint(String url, NamespaceHandler nsh, String jobName, int startPage, int endPage) static voidprint(org.eclipse.swt.printing.PrinterData printerData, String url, NamespaceHandler nsh, String jobName) static voidprint(org.eclipse.swt.printing.PrinterData printerData, Document doc, String url, NamespaceHandler nsh, String jobName) static voidprint(org.eclipse.swt.printing.Printer printer, String url, NamespaceHandler nsh, String jobName, int startPage, int endPage) static voidprint(org.eclipse.swt.printing.Printer printer, Document doc, String url, NamespaceHandler nsh, String jobName, int startPage, int endPage) voidprint(Document doc, String url, NamespaceHandler nsh, String jobName, int startPage, int endPage) static voidprintDialog(org.eclipse.swt.widgets.Shell shell, String url, NamespaceHandler nsh, String jobName) static voidprintDialog(org.eclipse.swt.widgets.Shell shell, Document doc, String url, NamespaceHandler nsh, String jobName)
-
Field Details
-
_printer
private final org.eclipse.swt.printing.Printer _printer
-
-
Constructor Details
-
PrinterRenderer
public PrinterRenderer(org.eclipse.swt.printing.Printer printer) -
PrinterRenderer
-
-
Method Details
-
dispose
public void dispose()Dispose resources. This does NOT dispose the attachedPrinter. -
newLayoutcontext
- Returns:
- a new
LayoutContext
-
newRenderingContext
-
print
public void print(Document doc, String url, NamespaceHandler nsh, String jobName, int startPage, int endPage) -
print
-
loadDocument
-
isActive
Description copied from interface:UserInterfaceGets the active attribute of the UserInterface object- Specified by:
isActivein interfaceUserInterface- Parameters:
e- PARAM- Returns:
- The active value
-
isFocus
Description copied from interface:UserInterfaceGets the focus attribute of the UserInterface object- Specified by:
isFocusin interfaceUserInterface- Parameters:
e- PARAM- Returns:
- The focus value
-
isHover
Description copied from interface:UserInterfaceGets the hover attribute of the UserInterface object- Specified by:
isHoverin interfaceUserInterface- Parameters:
e- PARAM- Returns:
- The hover value
-
print
public static void print(org.eclipse.swt.printing.Printer printer, Document doc, String url, NamespaceHandler nsh, String jobName, int startPage, int endPage) -
print
public static void print(org.eclipse.swt.printing.Printer printer, String url, NamespaceHandler nsh, String jobName, int startPage, int endPage) -
print
public static void print(org.eclipse.swt.printing.PrinterData printerData, Document doc, String url, NamespaceHandler nsh, String jobName) -
print
public static void print(org.eclipse.swt.printing.PrinterData printerData, String url, NamespaceHandler nsh, String jobName) -
printDialog
public static void printDialog(org.eclipse.swt.widgets.Shell shell, Document doc, String url, NamespaceHandler nsh, String jobName) -
printDialog
public static void printDialog(org.eclipse.swt.widgets.Shell shell, String url, NamespaceHandler nsh, String jobName)
-