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.
Paper()
- Creates a letter sized piece of paper
with one inch margins.
clone()
- Create a copy of this Paper.
getHeight()
- Return the height of the page in 1/72ths
of an inch.
getImageableArea()
- Return the portion of the page on which
drawing can occur.
getWidth()
- Return the width of the page in 1/72ths
of an inch.
setImageableArea(double, double, double, double)
- Set the imageable area of the paper.
setImageableArea(Rectangle2D)
- Set the imageable area of the paper.
setSize(double, double)
- Set the width and height of the paper.
Paper
public Paper()
- Creates a letter sized piece of paper
with one inch margins.
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.
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature