Java java.awt.print PageFormat fields, constructors, methods, implement or subclass

Example usage for Java java.awt.print PageFormat fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt.print PageFormat.

The text is from its open source code.

Field

intLANDSCAPE
The origin is at the bottom left of the paper with x running bottom to top and y running left to right.
intPORTRAIT
The origin is at the top left of the paper with x running to the right and y running down the paper.
intREVERSE_LANDSCAPE
The origin is at the top right of the paper with x running top to bottom and y running right to left.

Constructor

PageFormat()
Creates a default, portrait-oriented PageFormat .

Method

Objectclone()
Makes a copy of this PageFormat with the same contents as this PageFormat .
doublegetHeight()
Returns the height, in 1/72nds of an inch, of the page.
doublegetImageableHeight()
Return the height, in 1/72nds of an inch, of the imageable area of the page.
doublegetImageableWidth()
Returns the width, in 1/72nds of an inch, of the imageable area of the page.
doublegetImageableX()
Returns the x coordinate of the upper left point of the imageable area of the Paper object associated with this PageFormat .
doublegetImageableY()
Returns the y coordinate of the upper left point of the imageable area of the Paper object associated with this PageFormat .
intgetOrientation()
Returns the orientation of this PageFormat .
PapergetPaper()
Returns a copy of the Paper object associated with this PageFormat .
doublegetWidth()
Returns the width, in 1/72nds of an inch, of the page.
voidsetOrientation(int orientation)
Sets the page orientation.
voidsetPaper(Paper paper)
Sets the Paper object for this PageFormat .