Uses of Class
java.awt.print.PageFormat
-
Packages that use PageFormat Package Description java.awt.print Provides classes and interfaces for a general printing API.javax.jnlp The JNLP API is designed to provide additional services to JNLP applications running in the Java Plugin or launched by Java Web Start. -
-
Uses of PageFormat in java.awt.print
Methods in java.awt.print that return PageFormat Modifier and Type Method Description PageFormat
PrinterJob. defaultPage()
Creates a newPageFormat
instance and sets it to a default size and orientation.abstract PageFormat
PrinterJob. defaultPage(PageFormat page)
Clones thePageFormat
argument and alters the clone to describe a default page size and orientation.PageFormat
Book. getPageFormat(int pageIndex)
Returns thePageFormat
of the page specified bypageIndex
.PageFormat
Pageable. getPageFormat(int pageIndex)
Returns thePageFormat
of the page specified bypageIndex
.PageFormat
PrinterJob. getPageFormat(PrintRequestAttributeSet attributes)
Calculates aPageFormat
with values consistent with those supported by the currentPrintService
for this job (ie the value returned bygetPrintService()
) and media, printable area and orientation contained inattributes
.abstract PageFormat
PrinterJob. pageDialog(PageFormat page)
Displays a dialog that allows modification of aPageFormat
instance.PageFormat
PrinterJob. pageDialog(PrintRequestAttributeSet attributes)
A convenience method which displays a cross-platform page setup dialog.abstract PageFormat
PrinterJob. validatePage(PageFormat page)
Returns the clone ofpage
with its settings adjusted to be compatible with the current printer of thisPrinterJob
.Methods in java.awt.print with parameters of type PageFormat Modifier and Type Method Description void
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
.abstract PageFormat
PrinterJob. defaultPage(PageFormat page)
Clones thePageFormat
argument and alters the clone to describe a default page size and orientation.abstract PageFormat
PrinterJob. pageDialog(PageFormat page)
Displays a dialog that allows modification of aPageFormat
instance.int
Printable. print(Graphics graphics, PageFormat pageFormat, int pageIndex)
Prints the page at the specified index into the specifiedGraphics
context in the specified format.void
Book. setPage(int pageIndex, Printable painter, PageFormat page)
Sets thePageFormat
and thePainter
for a specified page number.abstract void
PrinterJob. setPrintable(Printable painter, PageFormat format)
Callspainter
to render the pages in the specifiedformat
.abstract PageFormat
PrinterJob. validatePage(PageFormat page)
Returns the clone ofpage
with its settings adjusted to be compatible with the current printer of thisPrinterJob
. -
Uses of PageFormat in javax.jnlp
Methods in javax.jnlp that return PageFormat Modifier and Type Method Description PageFormat
PrintService. getDefaultPage()
Creates a new PageFormat instance and sets it to the default size and orientation.PageFormat
PrintService. showPageFormatDialog(PageFormat page)
Displays a dialog that allows modification of aPageFormat
instance.Methods in javax.jnlp with parameters of type PageFormat Modifier and Type Method Description PageFormat
PrintService. showPageFormatDialog(PageFormat page)
Displays a dialog that allows modification of aPageFormat
instance.
-