Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.awt.print

Class Paper

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


public class Paper

extends Object

This class describes a particular type of paper.

Author:

Constructor Summary

Paper()

This method creates a letter sized paper with one inch margins

Method Summary

java.lang.Objectclone()

This method creates a copy of this object.
doublegetHeight()

This method returns the height of the paper in 1/72nds of an inch.
doublegetImageableHeight()

Returns the height of the imageable area of the paper.
doublegetImageableWidth()

Returns the width of the imageable area of the paper.
doublegetImageableX()

This method returns the X coordinate of the upper left hand corner of the imageable area of the paper.
doublegetImageableY()

This method returns the Y coordinate of the upper left hand corner of the imageable area of the paper.
doublegetWidth()

Returns the width of the paper in 1/72nds of an inch.
voidsetImageableArea(double imageableX, double imageableY, double imageableWidth, double imageableHeight)

This method sets the imageable area of the paper by specifying the coordinates of the upper left hand corner of that area, and its length and height.
voidsetSize(double width, double height)

This method sets the size of the paper to the specified width and height, which are specified in 1/72nds of an inch.

Constructor Details

Paper

public Paper()

This method creates a letter sized paper with one inch margins


Method Details

clone

public Object clone()

This method creates a copy of this object.

Returns:


getHeight

public double getHeight()

This method returns the height of the paper in 1/72nds of an inch.

Returns:


getImageableHeight

public double getImageableHeight()

Returns the height of the imageable area of the paper.

Returns:


getImageableWidth

public double getImageableWidth()

Returns the width of the imageable area of the paper.

Returns:


getImageableX

public double getImageableX()

This method returns the X coordinate of the upper left hand corner of the imageable area of the paper.

Returns:


getImageableY

public double getImageableY()

This method returns the Y coordinate of the upper left hand corner of the imageable area of the paper.

Returns:


getWidth

public double getWidth()

Returns the width of the paper in 1/72nds of an inch.

Returns:


setImageableArea

public void setImageableArea(double imageableX, double imageableY, double imageableWidth, double imageableHeight)

This method sets the imageable area of the paper by specifying the coordinates of the upper left hand corner of that area, and its length and height. All values are in 1/72nds of an inch.

Parameters:


setSize

public void setSize(double width, double height)

This method sets the size of the paper to the specified width and height, which are specified in 1/72nds of an inch.

Parameters: