2362N/A * Copyright (c) 1997, 2000, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * The <code>PageFormat</code> class describes the size and 0N/A * orientation of a page to be printed. 0N/A /* Class Constants */ 0N/A * The origin is at the bottom left of the paper with 0N/A * x running bottom to top and y running left to right. 0N/A * Note that this is not the Macintosh landscape but 0N/A * is the Window's and PostScript landscape. 0N/A * The origin is at the top left of the paper with 0N/A * x running to the right and y running down the 0N/A * The origin is at the top right of the paper with x 0N/A * running top to bottom and y running right to left. 0N/A * Note that this is the Macintosh landscape. 0N/A /* Instance Variables */ 0N/A * A description of the physical piece of paper. 0N/A * The orientation of the current page. This will be 0N/A * one of the constants: PORTRIAT, LANDSCAPE, or 0N/A * REVERSE_LANDSCAPE, 0N/A * Creates a default, portrait-oriented 0N/A * <code>PageFormat</code>. 0N/A /* Instance Methods */ 0N/A * Makes a copy of this <code>PageFormat</code> with the same 0N/A * contents as this <code>PageFormat</code>. 0N/A * @return a copy of this <code>PageFormat</code>. 0N/A * Returns the width, in 1/72nds of an inch, of the page. 0N/A * This method takes into account the orientation of the 0N/A * page when determining the width. 0N/A * @return the width of the page. 0N/A * Returns the height, in 1/72nds of an inch, of the page. 0N/A * This method takes into account the orientation of the 0N/A * page when determining the height. 0N/A * @return the height of the page. 0N/A * Returns the x coordinate of the upper left point of the 0N/A * imageable area of the <code>Paper</code> object 0N/A * associated with this <code>PageFormat</code>. 0N/A * This method takes into account the 0N/A * orientation of the page. 0N/A * @return the x coordinate of the upper left point of the 0N/A * imageable area of the <code>Paper</code> object 0N/A * associated with this <code>PageFormat</code>. 0N/A /* This should never happen since it signifies that the 0N/A * PageFormat is in an invalid orientation. 0N/A * Returns the y coordinate of the upper left point of the 0N/A * imageable area of the <code>Paper</code> object 0N/A * associated with this <code>PageFormat</code>. 0N/A * This method takes into account the 0N/A * orientation of the page. 0N/A * @return the y coordinate of the upper left point of the 0N/A * imageable area of the <code>Paper</code> object 0N/A * associated with this <code>PageFormat</code>. 0N/A /* This should never happen since it signifies that the 0N/A * PageFormat is in an invalid orientation. 0N/A * Returns the width, in 1/72nds of an inch, of the imageable 0N/A * area of the page. This method takes into account the orientation 0N/A * @return the width of the page. 0N/A * Return the height, in 1/72nds of an inch, of the imageable 0N/A * area of the page. This method takes into account the orientation 0N/A * @return the height of the page. 0N/A * Returns a copy of the {@link Paper} object associated 0N/A * with this <code>PageFormat</code>. Changes made to the 0N/A * <code>Paper</code> object returned from this method do not 0N/A * affect the <code>Paper</code> object of this 0N/A * <code>PageFormat</code>. To update the <code>Paper</code> 0N/A * object of this <code>PageFormat</code>, create a new 0N/A * <code>Paper</code> object and set it into this 0N/A * <code>PageFormat</code> by using the {@link #setPaper(Paper)} 0N/A * @return a copy of the <code>Paper</code> object associated 0N/A * with this <code>PageFormat</code>. 0N/A * Sets the <code>Paper</code> object for this 0N/A * <code>PageFormat</code>. 0N/A * @param paper the <code>Paper</code> object to which to set 0N/A * the <code>Paper</code> object for this <code>PageFormat</code>. 0N/A * @exception <code>NullPointerException</code> 0N/A * a null paper instance was passed as a parameter. 0N/A * Sets the page orientation. <code>orientation</code> must be 0N/A * one of the constants: PORTRAIT, LANDSCAPE, 0N/A * or REVERSE_LANDSCAPE. 0N/A * @param orientation the new orientation for the page 0N/A * @throws IllegalArgumentException if 0N/A * an unknown orientation was requested 0N/A * @see #getOrientation 0N/A * Returns the orientation of this <code>PageFormat</code>. 0N/A * @return this <code>PageFormat</code> object's orientation. 0N/A * @see #setOrientation 0N/A * Returns a transformation matrix that translates user 0N/A * space rendering to the requested orientation 0N/A * of the page. The values are placed into the 0N/A * { m00, m10, m01, m11, m02, m12} in 0N/A * the form required by the {@link AffineTransform} 0N/A * @return the matrix used to translate user space rendering 0N/A * to the orientation of the page. 0N/A * @see java.awt.geom.AffineTransform