public class PageMarginBoxContextNode extends CssContextNode
CssContextNode
implementation for page margin box contexts.
Modifier and Type | Field and Description |
---|---|
static String |
PAGE_MARGIN_BOX_TAG
The Constant PAGE_MARGIN_BOX_TAG.
|
Constructor and Description |
---|
PageMarginBoxContextNode(INode parentNode, String marginBoxName)
Creates a new PageMarginBoxContextNode instance.
|
Modifier and Type | Method and Description |
---|---|
com.itextpdf.kernel.geom.Rectangle |
getContainingBlockForMarginBox() |
String |
getMarginBoxName()
Gets the margin box name.
|
com.itextpdf.kernel.geom.Rectangle |
getPageMarginBoxRectangle()
Gets the rectangle in which page margin box contents should be shown.
|
void |
setContainingBlockForMarginBox(com.itextpdf.kernel.geom.Rectangle containingBlockForMarginBox)
Sets the containing block rectangle for the margin box, which is used for calculating some of the margin box properties relative values.
|
void |
setPageMarginBoxRectangle(com.itextpdf.kernel.geom.Rectangle pageMarginBoxRectangle)
Sets the rectangle in which page margin box contents are shown.
|
addChild, childNodes, getStyles, parentNode, setStyles
public static final String PAGE_MARGIN_BOX_TAG
public PageMarginBoxContextNode(INode parentNode, String marginBoxName)
PageMarginBoxContextNode
instance.
parentNode
- the parent node
marginBoxName
- the margin box name
public String getMarginBoxName()
public void setPageMarginBoxRectangle(com.itextpdf.kernel.geom.Rectangle pageMarginBoxRectangle)
pageMarginBoxRectangle
- the Rectangle
defining position and dimensions of the margin box content area
public com.itextpdf.kernel.geom.Rectangle getPageMarginBoxRectangle()
Rectangle
defining position and dimensions of the margin box content area
public void setContainingBlockForMarginBox(com.itextpdf.kernel.geom.Rectangle containingBlockForMarginBox)
containingBlockForMarginBox
- the Rectangle
which is used as a reference for some margin box relative properties calculations.
public com.itextpdf.kernel.geom.Rectangle getContainingBlockForMarginBox()
Rectangle
which is used as a reference for some margin box relative properties calculations.
Copyright © 1998–2019 iText Group NV. All rights reserved.