API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.print. PageFormat View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      PageFormat
Implements
 Cloneable
Subclasses
Description
public class PageFormat
The PageFormat class describes the size and orientation of a page to be printed.
See also:   
Constructors
public PageFormat ()
Creates a default, portrait-oriented PageFormat.
Methods
Hide/Show inherited methods
public Object clone ()
  Makes a copy of this PageFormat with the same contents as this PageFormat.
public double getHeight ()
  Returns the height, in 1/72nds of an inch, of the page.
public double getImageableHeight ()
  Return the height, in 1/72nds of an inch, of the imageable area of the page.
public double getImageableWidth ()
  Returns the width, in 1/72nds of an inch, of the imageable area of the page.
public double getImageableX ()
  Returns the x coordinate of the upper left point of the imageable area of the Paper object associated with this PageFormat.
public double getImageableY ()
  Returns the y coordinate of the upper left point of the imageable area of the Paper object associated with this PageFormat.
public double getMatrix ()
  Returns a transformation matrix that translates user space rendering to the requested orientation of the page.
public int getOrientation ()
  Returns the orientation of this PageFormat.
public Paper getPaper ()
  Returns a copy of the Paper object associated with this PageFormat.
public double getWidth ()
  Returns the width, in 1/72nds of an inch, of the page.
public void setOrientation (int orientation) throws IllegalArgumentException
  Sets the page orientation.
public void setPaper (Paper paper)
  Sets the Paper object for this PageFormat.
Fields
Hide/Show inherited fields
publicfinalstatic int LANDSCAPE = "0"
  The origin is at the bottom left of the paper with x running bottom to top and y running left to right.
publicfinalstatic int PORTRAIT = "1"
The origin is at the top left of the paper with x running to the right and y running down the paper.
publicfinalstatic int REVERSE_LANDSCAPE = "2"
  The origin is at the top right of the paper with x running top to bottom and y running right to left.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar