class describes the physical characteristics of
a piece of paper.
Method from java.awt.print.Paper Detail: |
public Object clone() {
Paper newPaper;
try {
/* It's okay to copy the reference to the imageable
* area into the clone since we always return a copy
* of the imageable area when asked for it.
*/
newPaper = (Paper) super.clone();
} catch (CloneNotSupportedException e) {
e.printStackTrace();
newPaper = null; // should never happen.
}
return newPaper;
}
Creates a copy of this Paper with the same contents
as this Paper . |
public double getHeight() {
return mHeight;
}
Returns the height of the page in 1/72nds of an inch. |
public double getImageableHeight() {
return mImageableArea.getHeight();
}
Returns the height of this Paper object's imageable
area. |
public double getImageableWidth() {
return mImageableArea.getWidth();
}
Returns the width of this Paper object's imageable
area. |
public double getImageableX() {
return mImageableArea.getX();
}
Returns the x coordinate of the upper-left corner of this
Paper object's imageable area. |
public double getImageableY() {
return mImageableArea.getY();
}
Returns the y coordinate of the upper-left corner of this
Paper object's imageable area. |
public double getWidth() {
return mWidth;
}
Returns the width of the page in 1/72nds
of an inch. |
public void setImageableArea(double x,
double y,
double width,
double height) {
mImageableArea = new Rectangle2D.Double(x, y, width,height);
}
Sets the imageable area of this Paper . The
imageable area is the area on the page in which printing
occurs. |
public void setSize(double width,
double height) {
mWidth = width;
mHeight = height;
}
Sets the width and height of this Paper
object, which represents the properties of the page onto
which printing occurs.
The dimensions are supplied in 1/72nds of
an inch. |