public interface

CountingPrintable

implements Printable
sun.swing.text.CountingPrintable
Known Indirect Subclasses

Class Overview

Printable which counts the number of pages.

Summary

[Expand]
Inherited Constants
From interface java.awt.print.Printable
Public Methods
abstract int getNumberOfPages()
Returns the number of pages in this printable.
[Expand]
Inherited Methods
From interface java.awt.print.Printable

Public Methods

public abstract int getNumberOfPages ()

Returns the number of pages in this printable.

This number is defined only after print returns NO_SUCH_PAGE.

Returns
  • the number of pages.