|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.print.PageFormat
Field Summary | |
static int | LANDSCAPE
The origin is at the bottom left of the paper with x running bottom to top and y running left to right. |
static int | PORTRAIT
The origin is at the top left of the paper with x running to the right and y running down the paper. |
static int | REVERSE_LANDSCAPE
The origin is at the top right of the paper with x running top to bottom and y running right to left. |
Constructor Summary | |
PageFormat()
Create a default, portrait oriented page format. |
Method Summary | |
Object | clone()
Make a copy of this PageFormat. |
double | getHeight()
Return the height, in 1/72nds of an inch, of the page. |
double | getImageableHeight()
Return the height, in 1/72nds of an inch, of the imageable area of the page. |
double | getImageableWidth()
Return the width, in 1/72nds of an inch, of the imageable area of the page. |
double | getImageableX()
Return the x coordinate of the upper left point of the page's imageable area. |
double | getImageableY()
Return the y coordinate of the upper left point of the page's imageable area. |
double[] | getMatrix()
Return a transformation matrix that will translate user space drawing to the requested orientation of the page. |
int | getOrientation()
Return the orientation of this PageFormat. |
Paper | getPaper()
Return a copy of the paper object associated with this PageFormat. |
double | getWidth()
Return the width, in 1/72nds of an inch, of the page. |
void | setOrientation(int orientation)
Set the page orientation. |
void | setPaper(Paper paper)
Set the paper object for this PageFormat. |
Methods inherited from class java.lang.Object | |
equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
Field Detail |
public static final int LANDSCAPE
public static final int PORTRAIT
public static final int REVERSE_LANDSCAPE
Constructor Detail |
public PageFormat()
Method Detail |
public Object clone()
public double getWidth()
public double getHeight()
public double getImageableX()
public double getImageableY()
public double getImageableWidth()
public double getImageableHeight()
public Paper getPaper()
public void setPaper(Paper paper)
public void setOrientation(int orientation) throws IllegalArgumentException
orientation
- the new orientation for the pagepublic int getOrientation()
public double[] getMatrix()
AffineTransform
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |