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 |
---|---|
Rectangle |
getContainingBlockForMarginBox() |
String |
getMarginBoxName()
Gets the margin box name.
|
Rectangle |
getPageMarginBoxRectangle()
Gets the rectangle in which page margin box contents should be shown.
|
void |
setContainingBlockForMarginBox(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(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(Rectangle pageMarginBoxRectangle)
pageMarginBoxRectangle
- the Rectangle
defining position and dimensions of the margin box content area
public Rectangle getPageMarginBoxRectangle()
Rectangle
defining position and dimensions of the margin box content area
public void setContainingBlockForMarginBox(Rectangle containingBlockForMarginBox)
containingBlockForMarginBox
- the Rectangle
which is used as a reference for some margin box relative properties calculations.
Copyright © 1998–2023 iText Group NV. All rights reserved.