Side of Software
Print Preview Library 1.8.1

sos.preview
Interface PrintPreviewSupport.PageableFactory

Enclosing interface:
PrintPreviewSupport

public static interface PrintPreviewSupport.PageableFactory

A factory that can produce a Pageable object given a page format. PrintPreviewSupport uses this factory to generate an initial Pageable and to generate a new Pageable when the page format has changed.

Since:
1.0

Method Summary
 java.awt.print.Pageable createPageable(java.awt.print.PageFormat pageFormat)
          Creates and returns a Pageable object given the specified page format.
 

Method Detail

createPageable

public java.awt.print.Pageable createPageable(java.awt.print.PageFormat pageFormat)
Creates and returns a Pageable object given the specified page format. Typically, an implementation will lay out its document on the specified page format and return a new Pageable object for this layout. In most cases, all pages in the returned Pageable will have the same page format, but this is not required.

Parameters:
pageFormat - a page format for which to generate a new Pageable object
Returns:
a Pageable object for the specified page format
Throws:
java.lang.NullPointerException - if pageFormat is null

Side of Software
Print Preview Library 1.8.1

Copyright 2003-07 Side of Software (SOS). All rights reserved.