Class java.awt.print.Paper
java.lang.Object
|
+----java.awt.print.Paper
- public class Paper
- extends java.lang.Object
Describes the physical characteristics of a
piece of paper.
WARNING: This class is largely a placeholder, awaiting a more
complete definition. For now, it simply serves as a source of
paper size information for PageFormat.
|
Constructor Summary
|
Paper()
Creates a letter sized piece of paper
with one inch margins.
|
|
Method Summary
|
|
java.lang.Object
|
clone()
Create a copy of this Paper.
|
|
double
|
getHeight()
Return the height of the page in 1/72ths
of an inch.
|
|
java.awt.geom.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(java.awt.geom.Rectangle2D imageableArea)
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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Paper
public Paper()
- Creates a letter sized piece of paper
with one inch margins.
clone
public java.lang.Object clone()
- Create a copy of this Paper.
- Overrides:
- clone in class java.lang.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(java.awt.geom.Rectangle2D imageableArea)
- Set the imageable area of the paper.
getImageableArea
public java.awt.geom.Rectangle2D getImageableArea()
- Return the portion of the page on which
drawing can occur. The rectangle is
expressed in 1/72ths of an inch.