Java Platform 1.2
Beta 4

Class java.awt.print.Paper

java.lang.Object
  |
  +--java.awt.print.Paper

public class Paper
extends Object
implements Cloneable
Describes the physical characteristics of a piece of paper. 11/11/97 Notes - Should support media color, weight, and type.


Constructor Summary
Paper()
          Creates a letter sized piece of paper with one inch margins.
 
Method Summary
 Object clone()
          Create a copy of this Paper.
 double getHeight()
          Return the height of the page in 1/72ths of an inch.
 double getImageableHeight()
           
 double getImageableWidth()
           
 double getImageableX()
           
 double getImageableY()
           
 double getWidth()
          Return the width of the page in 1/72ths of an inch.
 void setImageableArea(double x, double y, double width, double height)
          Set the imageable area of the paper.
 void setSize(double width, double height)
          Set the width and height of the paper.
 
Methods inherited from class java.lang.Object
equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

Constructor Detail

Paper

public Paper()
Creates a letter sized piece of paper with one inch margins.
Method Detail

clone

public Object clone()
Create a copy of this Paper.
Overrides:
clone in class Object

getHeight

public double getHeight()
Return the height of the page in 1/72ths of an inch.

setSize

public void setSize(double width,
                    double height)
Set the width and height of the paper. The dimensions are supplied in1/72nds of and inch.

getWidth

public double getWidth()
Return the width of the page in 1/72ths of an inch.

setImageableArea

public void setImageableArea(double x,
                             double y,
                             double width,
                             double height)
Set the imageable area of the paper. This routine is not public but exists to make writing some of the native code easier - it doesn't need to make a Rectangle2D instance in order to set the imageable area.

getImageableX

public double getImageableX()

getImageableY

public double getImageableY()

getImageableWidth

public double getImageableWidth()

getImageableHeight

public double getImageableHeight()

Java Platform 1.2
Beta 4

Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.