public static class

PSPrinterJob.EPSPrinter

extends Object
implements Pageable
java.lang.Object
   ↳ sun.print.PSPrinterJob.EPSPrinter

Summary

[Expand]
Inherited Constants
From interface java.awt.print.Pageable
Public Constructors
PSPrinterJob.EPSPrinter(Printable printable, String title, PrintStream stream, int x, int y, int wid, int hgt)
Public Methods
int getNumberOfPages()
Returns the number of pages in the set.
PageFormat getPageFormat(int pgIndex)
Returns the PageFormat of the page specified by pageIndex.
Printable getPrintable(int pgIndex)
Returns the Printable instance responsible for rendering the page specified by pageIndex.
void print()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.awt.print.Pageable

Public Constructors

public PSPrinterJob.EPSPrinter (Printable printable, String title, PrintStream stream, int x, int y, int wid, int hgt)

Public Methods

public int getNumberOfPages ()

Returns the number of pages in the set. To enable advanced printing features, it is recommended that Pageable implementations return the true number of pages rather than the UNKNOWN_NUMBER_OF_PAGES constant.

Returns
  • the number of pages in this Pageable.

public PageFormat getPageFormat (int pgIndex)

Returns the PageFormat of the page specified by pageIndex.

Parameters
pgIndex the zero based index of the page whose PageFormat is being requested
Returns
  • the PageFormat describing the size and orientation.

public Printable getPrintable (int pgIndex)

Returns the Printable instance responsible for rendering the page specified by pageIndex.

Parameters
pgIndex the zero based index of the page whose Printable is being requested
Returns
  • the Printable that renders the page.

public void print ()