public class XprPageOptions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
LANDSCAPE
Constant to define landscape orientation.
|
private int |
pageHeightPix
Page height in pixels.
|
private int |
pageWidthPix
Page width in pixels.
|
static int |
PORTRAIT
Constant to define portrait orientation.
|
Constructor and Description |
---|
XprPageOptions(int width,
int height,
int pageOri)
Create a new XPR page options object.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeightPix()
Returns the current page height in pixels.
|
int |
getWidthPix()
Returns the current page width in pixels.
|
void |
setPageOrientation(int pageNewOri)
Changes the new page orientation.
|
public static final int PORTRAIT
public static final int LANDSCAPE
private int pageWidthPix
private int pageHeightPix
public XprPageOptions(int width, int height, int pageOri)
width
- The page width in pixels.height
- The page height in pixels.pageOri
- The current page orientation.public int getWidthPix()
public int getHeightPix()
public void setPageOrientation(int pageNewOri)
pageNewOri
- The new orientation to apply, either PORTRAIT or LANDSCAPE.