public class Paper extends Object implements Serializable
This class is a serializable
version of Paper
.
Use fromAwtValue(java.awt.print.Paper)
and toAwtValue()
to transform from AWT
class object to jadice class objects and vice versa.
Paper
,
Serialized FormConstructor and Description |
---|
Paper() |
Modifier and Type | Method and Description |
---|---|
static Paper |
fromAwtValue(Paper paper)
Transforms an AWT
Paper instance to a jadice Paper instance. |
void |
setImageableArea(double x,
double y,
double width,
double height)
Sets the imageable area of this Paper.
|
void |
setSize(double width,
double height)
Sets the width and height of this Paper object
|
Paper |
toAwtValue() |
public void setImageableArea(double x, double y, double width, double height)
x
- X coordinate of the upper-left corner of the imageable areay
- Y coordinate of the upper-left corner of the imageable areawidth
- width of the imageable area of the paperheight
- height of the imageable area of the paperPaper.setImageableArea(double, double, double, double)
public void setSize(double width, double height)
width
- this Paper's widthheight
- this Paper's heightPaper.setSize(double, double)
public Paper toAwtValue()
Copyright © 2017 levigo holding gmbh. All rights reserved.