Example usage for Java java.awt.print PageFormat fields, constructors, methods, implement or subclass
The text is from its open source code.
int | LANDSCAPE The origin is at the bottom left of the paper with x running bottom to top and y running left to right. |
int | PORTRAIT The origin is at the top left of the paper with x running to the right and y running down the paper. |
int | REVERSE_LANDSCAPE The origin is at the top right of the paper with x running top to bottom and y running right to left. |
PageFormat() Creates a default, portrait-oriented PageFormat . |
Object | clone() Makes a copy of this PageFormat with the same contents as this PageFormat . |
double | getHeight() Returns the height, in 1/72nds of an inch, of the page. |
double | getImageableHeight() Return the height, in 1/72nds of an inch, of the imageable area of the page. |
double | getImageableWidth() Returns the width, in 1/72nds of an inch, of the imageable area of the page. |
double | getImageableX() Returns the x coordinate of the upper left point of the imageable area of the Paper object associated with this PageFormat . |
double | getImageableY() Returns the y coordinate of the upper left point of the imageable area of the Paper object associated with this PageFormat . |
int | getOrientation() Returns the orientation of this PageFormat . |
Paper | getPaper() Returns a copy of the Paper object associated with this PageFormat . |
double | getWidth() Returns the width, in 1/72nds of an inch, of the page. |
void | setOrientation(int orientation) Sets the page orientation. |
void | setPaper(Paper paper) Sets the Paper object for this PageFormat . |