public class MotivePageFormat
extends java.lang.Object
Constructor and Description |
---|
MotivePageFormat() |
MotivePageFormat(java.awt.print.PageFormat pageFormat) |
Modifier and Type | Method and Description |
---|---|
double |
getHeight()
Returns 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()
Returns the width, in 1/72nds of an inch, of the imageable
area of the page.
|
int |
getMarginForBoundaryHintX() |
int |
getMarginForBoundaryHintY() |
int |
getMotiveHeight() |
int |
getMotiveOffsetX() |
int |
getMotiveOffsetY() |
int |
getMotiveWidth() |
java.awt.print.PageFormat |
getPageFormat() |
double |
getWidth()
Returns the width, in 1/72nds of an inch, of the page.
|
boolean |
isBoundaryHint() |
void |
setBoundaryHint(boolean boundaryHint) |
void |
setMarginForBoundaryHintX(int marginForBoundaryHintX) |
void |
setMarginForBoundaryHintY(int marginForBoundaryHintY) |
void |
setMotiveHeight(int motiveHeight) |
void |
setMotiveOffsetX(int motiveOffsetX) |
void |
setMotiveOffsetY(int motiveOffsetY) |
void |
setMotiveWidth(int motiveWidth) |
void |
setOrientation(int orientation)
Sets the page orientation.
|
void |
setPaper(java.awt.print.Paper paper)
Sets the
Paper object for this
PageFormat . |
public MotivePageFormat()
public MotivePageFormat(java.awt.print.PageFormat pageFormat)
public java.awt.print.PageFormat getPageFormat()
public int getMotiveWidth()
public void setMotiveWidth(int motiveWidth)
public int getMotiveHeight()
public void setMotiveHeight(int motiveHeight)
public int getMotiveOffsetX()
public void setMotiveOffsetX(int motiveOffsetX)
public int getMotiveOffsetY()
public void setMotiveOffsetY(int motiveOffsetY)
public boolean isBoundaryHint()
public void setBoundaryHint(boolean boundaryHint)
public int getMarginForBoundaryHintX()
public void setMarginForBoundaryHintX(int marginForBoundaryHintX)
public int getMarginForBoundaryHintY()
public void setMarginForBoundaryHintY(int marginForBoundaryHintY)
public double getWidth()
public double getHeight()
public double getImageableWidth()
public double getImageableHeight()
public void setOrientation(int orientation) throws java.lang.IllegalArgumentException
orientation
must be
one of the constants: PORTRAIT, LANDSCAPE,
or REVERSE_LANDSCAPE.orientation
- the new orientation for the pagejava.lang.IllegalArgumentException
- if
an unknown orientation was requestedpublic void setPaper(java.awt.print.Paper paper)
Paper
object for this
PageFormat
.paper
- the Paper
object to which to set
the Paper
object for this PageFormat
.NullPointerException
- a null paper instance was passed as a parameter.Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de