Uses of Interface
java.awt.print.Printable
| Package | Description |
|---|---|
| java.awt.print |
Provides classes and interfaces for a general printing API.
|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
|
| javax.swing.text |
Provides classes and interfaces that deal with editable and noneditable text
components.
|
-
Uses of Printable in java.awt.print
Methods in java.awt.print that return Printable Modifier and Type Method Description PrintableBook. getPrintable(int pageIndex)Returns thePrintableinstance responsible for rendering the page specified bypageIndex.PrintablePageable. getPrintable(int pageIndex)Returns thePrintableinstance responsible for rendering the page specified bypageIndex.Methods in java.awt.print with parameters of type Printable Modifier and Type Method Description voidBook. append(Printable painter, PageFormat page)Appends a single page to the end of thisBook.voidBook. append(Printable painter, PageFormat page, int numPages)AppendsnumPagespages to the end of thisBook.voidBook. setPage(int pageIndex, Printable painter, PageFormat page)Sets thePageFormatand thePainterfor a specified page number.abstract voidPrinterJob. setPrintable(Printable painter)Callspainterto render the pages.abstract voidPrinterJob. setPrintable(Printable painter, PageFormat format)Callspainterto render the pages in the specifiedformat. -
Uses of Printable in javax.swing
Methods in javax.swing that return Printable Modifier and Type Method Description PrintableJTable. getPrintable(JTable.PrintMode printMode, MessageFormat headerFormat, MessageFormat footerFormat)Return aPrintablefor use in printing this JTable. -
Uses of Printable in javax.swing.text
Methods in javax.swing.text that return Printable Modifier and Type Method Description PrintableJTextComponent. getPrintable(MessageFormat headerFormat, MessageFormat footerFormat)Returns aPrintableto use for printing the content of thisJTextComponent.