|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.print.Paper
public class Paper
This class describes a particular type of paper.
Constructor Summary | |
---|---|
Paper()
This method creates a letter sized paper with one inch margins |
Method Summary | |
---|---|
Object |
clone()
This method creates a copy of this object. |
double |
getHeight()
This method returns the height of the paper in 1/72nds of an inch. |
double |
getImageableHeight()
Returns the height of the imageable area of the paper. |
double |
getImageableWidth()
Returns the width of the imageable area of the paper. |
double |
getImageableX()
This method returns the X coordinate of the upper left hand corner of the imageable area of the paper. |
double |
getImageableY()
This method returns the Y coordinate of the upper left hand corner of the imageable area of the paper. |
double |
getWidth()
Returns the width of the paper in 1/72nds of an inch. |
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. |
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. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Paper()
Method Detail |
---|
public double getHeight()
public double getWidth()
public double getImageableX()
public double getImageableY()
public double getImageableWidth()
public double getImageableHeight()
public void setSize(double width, double height)
width
- The width of the paper in 1/72nds of an inch.height
- The height of the paper in 1/72nds of an inch.public void setImageableArea(double imageableX, double imageableY, double imageableWidth, double imageableHeight)
imageableX
- The X coordinate of the upper left hand corner of the
imageable area, in 1/72nds of an inch.imageableY
- The Y coordinate of the upper left hand corner of the
imageable area, in 1/72nds of an inch.imageableWidth
- The width of the imageable area of the paper, in
1/72nds of an inch.imageableHeight
- The heigth of the imageable area of the paper, in
1/72nds of an inch.public Object clone()
clone
in class Object
Cloneable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |