All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.print.Paper

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

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


Constructor Index

 o Paper()
Creates a letter sized piece of paper with one inch margins.

Method Index

 o clone()
Create a copy of this Paper.
 o getHeight()
Return the height of the page in 1/72ths of an inch.
 o getImageableArea()
Return the portion of the page on which drawing can occur.
 o getWidth()
Return the width of the page in 1/72ths of an inch.
 o setImageableArea(double, double, double, double)
Set the imageable area of the paper.
 o setImageableArea(Rectangle2D)
Set the imageable area of the paper.
 o setSize(double, double)
Set the width and height of the paper.

Constructors

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

Methods

 o clone
public Object clone()
Create a copy of this Paper.

Overrides:
clone in class Object
 o getHeight
public double getHeight()
Return the height of the page in 1/72ths of an inch.

 o 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.

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

 o setImageableArea
public void setImageableArea(Rectangle2D imageableArea)
Set the imageable area of the paper.

 o setImageableArea
protected 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.

 o getImageableArea
public Rectangle2D getImageableArea()
Return the portion of the page on which drawing can occur. The rectangle is expressed in 1/72ths of an inch.


All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature