Package com.teamdev.jxbrowser.print
Interface PageMargins
- All Known Subinterfaces:
PageMargins.CustomMargins
public interface PageMargins
The page margins used for printing.
- Since:
- 7.13
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Page margins in points. -
Method Summary
Modifier and TypeMethodDescriptionstatic PageMargins
Creates default margins for the web page.static PageMargins
none()
Creates empty margins for the web page.static PageMargins.CustomMargins
of
(int left, int right, int top, int bottom) Creates custom margins for the web page in points.
-
Method Details
-
defaultMargins
Creates default margins for the web page. -
none
Creates empty margins for the web page. -
of
Creates custom margins for the web page in points. One point equals 1/72 of an inch.- Parameters:
left
- the margin on the left side of the sheetright
- the margin on the right side of the sheettop
- the margin on the top side of the sheetbottom
- the margin on the bottom side of the sheet- Throws:
IllegalArgumentException
- if any of the input parameters is negative
-