Class Paper
- java.lang.Object
-
- com.levigo.jadice.server.documentplatform.Paper
-
- All Implemented Interfaces:
Serializable
public class Paper extends Object implements Serializable
This class is aserializable
version ofPaper
.Use
fromAwtValue(java.awt.print.Paper)
andtoAwtValue()
to transform from AWT class object to jadice class objects and vice versa.- Since:
- jadice server 4.3.1.4
- See Also:
Paper
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Paper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Paper
fromAwtValue(Paper paper)
Transforms an AWTPaper
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 objectPaper
toAwtValue()
-
-
-
Method Detail
-
setImageableArea
public void setImageableArea(double x, double y, double width, double height)
Sets the imageable area of this Paper. The imageable area is the area on the page in which printing occurs.- Parameters:
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 paper- See Also:
Paper.setImageableArea(double, double, double, double)
-
setSize
public void setSize(double width, double height)
Sets the width and height of this Paper object- Parameters:
width
- this Paper's widthheight
- this Paper's height- See Also:
Paper.setSize(double, double)
-
toAwtValue
public Paper toAwtValue()
- Returns:
- the AWT version of this instance
-
-