java.lang.Object
java.awt.print.PageFormat
- All Implemented Interfaces:
- Cloneable
- See Also:
- Top Examples, Source Code
public Object clone()
- See Also:
Cloneable
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public double getHeight()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public double getImageableHeight()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public double getImageableWidth()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public double getImageableX()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[160]Correct rendering on all printers
By Anonymous on 2003/01/30 16:21:32 Rate
//To ensure correct rendering on all printers, you need to offset the
// coordinates by the margin size for your printer.
int x = ( int ) pf.getImageableX ( ) ;
int y = ( int ) pf.getImageableY ( ) ;
g.drawString ( s, x+20, y+60 ) ;
public double getImageableY()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public double[] getMatrix()
- See Also:
AffineTransform
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getOrientation()
- See Also:
setOrientation(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Paper getPaper()
- See Also:
setPaper(java.awt.print.Paper)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public double getWidth()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int LANDSCAPE
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public PageFormat()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int PORTRAIT
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int REVERSE_LANDSCAPE
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setOrientation(int orientation)
throws IllegalArgumentException
- See Also:
getOrientation()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setPaper(Paper paper)
- See Also:
getPaper()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples