com.levigo.jadice.printer
Class Printer

java.lang.Object
  extended by com.levigo.jadice.printer.AbstractPrinter
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.levigo.jadice.printer.AbstractPrinter
AbstractPrinter.BasicPageable
 
Field Summary
 
Fields inherited from class com.levigo.jadice.printer.AbstractPrinter
cfg, currentPageIndex, errorHandler, lastPage, myPageable, printerExceptionList
 
Constructor Summary
Printer(PrintJobConfiguration cfg)
          Creates a default instance of this printer.
 
Method Summary
 void setPrintService(PrintService service)
          Associate this printer with a new PrintService.
 
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
 

Constructor Detail

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).
Method Detail

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.