Uses of Interface
java.awt.print.Printable
Package
Description
Provides classes and interfaces for a general printing API.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interfaces that deal with editable and noneditable text
components.
-
Uses of Printable in java.awt.print
Modifier and TypeMethodDescriptionBook.getPrintable
(int pageIndex) Returns thePrintable
instance responsible for rendering the page specified bypageIndex
.Pageable.getPrintable
(int pageIndex) Returns thePrintable
instance responsible for rendering the page specified bypageIndex
.Modifier and TypeMethodDescriptionvoid
Book.append
(Printable painter, PageFormat page) Appends a single page to the end of thisBook
.void
Book.append
(Printable painter, PageFormat page, int numPages) AppendsnumPages
pages to the end of thisBook
.void
Book.setPage
(int pageIndex, Printable painter, PageFormat page) Sets thePageFormat
and thePainter
for a specified page number.abstract void
PrinterJob.setPrintable
(Printable painter) Callspainter
to render the pages.abstract void
PrinterJob.setPrintable
(Printable painter, PageFormat format) Callspainter
to render the pages in the specifiedformat
. -
Uses of Printable in javax.swing
Modifier and TypeMethodDescriptionJTable.getPrintable
(JTable.PrintMode printMode, MessageFormat headerFormat, MessageFormat footerFormat) Return aPrintable
for use in printing this JTable. -
Uses of Printable in javax.swing.text
Modifier and TypeMethodDescriptionJTextComponent.getPrintable
(MessageFormat headerFormat, MessageFormat footerFormat) Returns aPrintable
to use for printing the content of thisJTextComponent
.