public class PageMargins
extends java.lang.Object
Constructor and Description |
---|
PageMargins(int header, int footer, int top, int left, int right, int bottom)
Constructs a new
PageMargins instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getBottom()
Returns margin on bottom side of the sheet in printer device points.
返回打印机设备点中纸张底面上的页边距。 |
int |
getFooter()
Returns vertical space for the overlay from the bottom of the sheet.
从工作表的底部返回叠加层的垂直空间。 |
int |
getHeader()
Returns vertical space for the overlay from the top of the sheet.
从工作表的顶部返回叠加层的垂直空间。 |
int |
getLeft()
Returns margin on left side of the sheet in printer device points.
返回页面左侧在打印机设备点的边距。 |
int |
getRight()
Returns margin on right side of the sheet in printer device points.
返回打印机设备点中纸张右侧的边距。 |
int |
getTop()
Returns margin on top side of the sheet in printer device points.
返回打印机设备点中纸张顶部的边距。 |
public PageMargins(int header, int footer, int top, int left, int right, int bottom)
PageMargins
instance.
header
- vertical space for the overlay from the top of the sheet. In printer device points.
-图纸顶部的垂直空间。在打印机设备上。
footer
- vertical space for the overlay from the bottom of the sheet. In printer device points.
-从工作表底部开始的覆盖垂直空间。在打印机设备上。
top
- margin on top side of the sheet in printer device points.
-打印机设备中纸张顶部的边距。
left
- margin on left side of the sheet in printer device points.
-打印机设备中页面左侧的边距。
right
- margin on right side of the sheet in printer device points.
-打印机设备中纸张右侧的边距指向。
bottom
- margin on bottom side of the sheet in printer device points.
-打印机设备中纸张底面上的页边距。
java.lang.IllegalArgumentException
- when any of input parameters is < 0.
public int getHeader()
public int getFooter()
public int getTop()
public int getLeft()
public int getRight()
public int getBottom()