com.levigo.jadice.printer
Class Printer
java.lang.Object
com.levigo.jadice.printer.AbstractPrinter
com.levigo.jadice.printer.Printer
public final class Printer
- extends AbstractPrinter
A printer class for printing with jadice JPS print API. At the moment the creation and
configuration is managed by the PrintManager
.
Methods inherited from class com.levigo.jadice.printer.AbstractPrinter |
addException, doPrint, firePrintEvent, getAnnotationsToDisable, getErrorHandler, getPrinterExceptions, getPrinterJob, getPrintJobConfiguration, getPrintRequestAttributeSet, initializePrintCache, isPrintAllAnnotationsUsed, isPrinting, reset, resetPrintCache, resetPrinterExceptions, setAnnotationsToDisable, setErrorHandler, setPrintAllAnnotations, setPrinterJob, setPrinting, setPrintRequestAttributeSet, validatePageFormat |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Printer
public Printer(PrintJobConfiguration cfg)
throws JadiceException
- Creates a default instance of this printer.
- Parameters:
cfg
- basic print job configuration
- Throws:
JadiceException
- if printer could not be created (for example if permissions prohibit
export or print).
setPrintService
public void setPrintService(PrintService service)
throws PrinterException
- Associate this printer with a new
PrintService
.
- Parameters:
service
- a print service that supports 2D printing.
- Throws:
PrinterException
-
if the specified service does not support the Pageable
and
Printable
interfaces necessary to support 2D printing,
or this printer job class does not support setting a 2D print service,
or the specified service is otherwise not a valid print service.
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.