org.netbeans.modules.print 7.3.1

org.netbeans.spi.print
Interface PrintProvider


public interface PrintProvider

Print provider is the collection of the pages to be printed, where collection is the 2D matrix.


Method Summary
 String getName()
          Indicates the name of the document being printed which will be shown in the header/footer.
 PrintPage[][] getPages(int width, int height, double zoom)
          Returns print pages being shown and printed.
 Date lastModified()
          Indicates the time at which the user last made a modification to the document, diagram, etc.
 

Method Detail

getPages

PrintPage[][] getPages(int width,
                       int height,
                       double zoom)
Returns print pages being shown and printed. The pages will be shown in the Print Preview dialog as 2D matrix, e.g. page pages[1][2] will be shown in second row and third column in the dialog.

Parameters:
width - specifies the width of pages in pixels.
height - specifies the height of pages in pixels.
zoom - specifies the scale of pages. The zoom can take positive double value: 0.2 means 20%, 1.0 - 100%, 3.1415 - 314.5% etc.
Returns:
pages being printed for the given width, height and zoom

getName

String getName()
Indicates the name of the document being printed which will be shown in the header/footer. By default, the name is shown in the left part of the header.

Returns:
name of the document which can be used in header/footer

lastModified

Date lastModified()
Indicates the time at which the user last made a modification to the document, diagram, etc. being printed which might affect its printed appearance. The document might not have been saved since then.

Returns:
time at which the printable document was last changed

org.netbeans.modules.print 7.3.1

Built on September 7 2010.  |  Portions Copyright 1997-2010 Sun Microsystems, Inc. All rights reserved.