APIdia Launch Partner
Top Description Fields Constructors Methods
sun.swing.text

pack-priv Class CompoundPrintable

extends Object
implements CountingPrintable
Class Inheritance
All Implemented Interfaces
sun.swing.text.CountingPrintable, java.awt.print.Printable
Imports
java.util.*, java.awt.Graphics, java.awt.print.*

Printable to merge multiple printables into one.
Author
Igor Kushnirskiy
Since
1.6

Field Summary

Modifier and TypeField and Description
private int
private final Queue<CountingPrintable>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the number of pages.
getNumberOfPages
()

Implements sun.swing.text.CountingPrintable.getNumberOfPages.

Returns the number of pages in this printable.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

offsetback to summary
private int offset
printablesback to summary
private final Queue<CountingPrintable> printables

Constructor Detail

CompoundPrintableback to summary
public CompoundPrintable(List<CountingPrintable> printables)

Method Detail

getNumberOfPagesback to summary
public int getNumberOfPages()

Implements sun.swing.text.CountingPrintable.getNumberOfPages.

Returns the number of pages in this printable.

This number is defined only after print returns NO_SUCH_PAGE.

Returns:int

the number of pages.