|
Generated by JDiff |
||||||||
PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES |
This file contains all the changes in documentation in the packagejava.awt.print
as colored differences. Deletions are shownlike this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.
Returns a copy of the Paper object associated with thisClass PageFormat, void setPaper(Paper)PageFormat
. Changes made to thePaper
object returned from this method do not affect thePaper
object of thisPageFormat
. To update thePaper
object of thisPageFormat
create a newPaper
object and set it into thisPageFormat
by using the #setPaper(Paper) method. @return a copy of thePaper
object associated with thisPageFormat
.
Sets thePaper
object for thisPageFormat
. @param paper thePaper
object to which to set thePaper
object for thisPageFormat
. @exceptionNullPointerException
a null paper instance was passed as a parameter.
TheClass Paper, void setImageableArea(double, double, double, double)Paper
class describes the physical characteristics of a piece of paper.When creating a
Paper
object it is the application's responsibility to ensure that the paper size and the imageable area are compatible. For example if the paper size is changed from 11 x 17 to 8.5 x 11 the application might need to reduce the imageable area so that whatever is printed fits on the page.@see #setSize(double double) @see #setImageableArea(double double double double)
Sets the imageable area of thisClass Paper, void setSize(double, double)Paper
. The imageable area is the area on the page in which printing occurs. @param x y the coordinates to which to set the upper-left corner of the imageable area of thisPaper
@param width the value to which to set the width of the imageable area of thisPaper
@param height the value to which to set the height of the imageable area of thisPaper
Sets the width and height of thisPaper
object which represents the properties of the page onto which printing occurs. The dimensions are supplied in 1/72nds ofandan inch. @param width the value to which to set thisPaper
object's width @param height the value to which to set thisPaper
object's height
ThePrintable
interface is implemented by thesystemtosystem to render a page. When building a Pageable pairs of PageFormat instances and instances that implement this interface are used to describe each page. The instance implementingPrintable
is called to print the page's graphics. @see java.awt.print.Pageable @see java.awt.print.PageFormat @see java.awt.print.PrinterJob
Displays a dialog that allows modification of aClass PrinterJob, PageFormat validatePage(PageFormat)PageFormat
instance. Thepage
argument is used to initialize controls in the page setup dialog. If the user cancels the dialog then this method returns the originalpage
object unmodified. If the user okays the dialog then this method returns a newPageFormat
object with the indicated changes. In either case the originalpage
object is not modified. @param page the defaultPageFormat
presented to the user for modification @return the originalpage
object if the dialog is cancelled; a newPageFormat
object containing the format indicated by the user if the dialog is acknowledged. @sinceJDK11.2
AltersReturns the clone of
PageFormatpageargumentwith its settings adjusted to beusablecompatible with the currentonprinter of thisPrinterJob
. For example the returnedPageFormat
could have its imageable area adjusted to fit within theobject'sphysical area of the paper that is used by the current printer. @param pagethisthepagePageFormat
descriptionthat is cloned andthen itswhose settings arealteredchanged to beusuablecompatiblefor thiswith thePrinterJobcurrent printer @return aPageFormat
that is cloned fromthe
PageFormatpageparameterandalteredwhose settings are changed to conform with thisPrinterJob
.