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, setStylespublic static final String PAGE_MARGIN_BOX_TAG
public PageMarginBoxContextNode(INode parentNode, String marginBoxName)
PageMarginBoxContextNode instance.parentNode - the parent nodemarginBoxName - the margin box namepublic String getMarginBoxName()
public void setPageMarginBoxRectangle(Rectangle pageMarginBoxRectangle)
pageMarginBoxRectangle - the Rectangle defining position and dimensions of the margin box content areapublic Rectangle getPageMarginBoxRectangle()
Rectangle defining position and dimensions of the margin box content areapublic void setContainingBlockForMarginBox(Rectangle containingBlockForMarginBox)
containingBlockForMarginBox - the Rectangle which is used as a reference for some
margin box relative properties calculations.Copyright © 1998–2019 iText Group NV. All rights reserved.