Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

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 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.
Rectangle2D  getImageableArea()
Return the portion of the page on which drawing can occur.
double  getWidth()
Return the width of the page in 1/72ths of an inch.
void  setImageableArea(Rectangle2D imageableArea)
Set the imageable area of the paper.
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
 clone, 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(Rectangle2D imageableArea)
Set the imageable area of the paper.

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.

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.

Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

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.