sferyx.administration.pdfgenerator
Class CustomPageFormat
java.lang.Object
java.awt.print.PageFormat
sferyx.administration.pdfgenerator.CustomPageFormat
- All Implemented Interfaces:
- java.lang.Cloneable
public class CustomPageFormat
- extends java.awt.print.PageFormat
This class provides a simplified way for assigning standard page formats
Fields inherited from class java.awt.print.PageFormat |
LANDSCAPE, PORTRAIT, REVERSE_LANDSCAPE |
Constructor Summary |
CustomPageFormat()
Creates a new instance of CustomPageFormat |
Method Summary |
double |
getHeight()
|
double |
getImageableHeight()
|
double |
getImageableWidth()
|
double |
getImageableX()
|
double |
getImageableY()
|
int |
getOrientation()
|
double |
getWidth()
|
void |
setMargins(double marginTop,
double marginBottom,
double marginLeft,
double marginRight)
|
void |
setMeasurmentUnits(java.lang.String measurmentUnits)
|
void |
setPageFormat(double width,
double height,
double marginTop,
double marginBottom,
double marginLeft,
double marginRight,
java.lang.String orientation,
java.lang.String measurmentUnits)
|
void |
setPageFormat(java.lang.String standardPageFormat,
java.lang.String orientation)
|
Methods inherited from class java.awt.print.PageFormat |
clone, getMatrix, getPaper, setOrientation, setPaper |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomPageFormat
public CustomPageFormat()
- Creates a new instance of CustomPageFormat
setPageFormat
public void setPageFormat(double width,
double height,
double marginTop,
double marginBottom,
double marginLeft,
double marginRight,
java.lang.String orientation,
java.lang.String measurmentUnits)
setMargins
public void setMargins(double marginTop,
double marginBottom,
double marginLeft,
double marginRight)
setMeasurmentUnits
public void setMeasurmentUnits(java.lang.String measurmentUnits)
setPageFormat
public void setPageFormat(java.lang.String standardPageFormat,
java.lang.String orientation)
getHeight
public double getHeight()
- Overrides:
getHeight
in class java.awt.print.PageFormat
getWidth
public double getWidth()
- Overrides:
getWidth
in class java.awt.print.PageFormat
getImageableHeight
public double getImageableHeight()
- Overrides:
getImageableHeight
in class java.awt.print.PageFormat
getImageableWidth
public double getImageableWidth()
- Overrides:
getImageableWidth
in class java.awt.print.PageFormat
getImageableX
public double getImageableX()
- Overrides:
getImageableX
in class java.awt.print.PageFormat
getImageableY
public double getImageableY()
- Overrides:
getImageableY
in class java.awt.print.PageFormat
getOrientation
public int getOrientation()
- Overrides:
getOrientation
in class java.awt.print.PageFormat