public class PageMarginBoxContextNode extends CssContextNode implements ICustomElementNode
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 |
|---|---|
void |
addAdditionalHtmlStyles(Map<String,String> styles)
Adds additional HTML styles.
|
List<Map<String,String>> |
getAdditionalHtmlStyles()
Gets additional styles, more specifically styles that affect an element
based on its position in the HTML DOM, e.g.
|
String |
getAttribute(String key)
Gets an attribute.
|
IAttributes |
getAttributes()
Gets the attributes.
|
Rectangle |
getContainingBlockForMarginBox() |
String |
getLang()
Gets the language.
|
String |
getMarginBoxName()
Gets the margin box name.
|
Rectangle |
getPageMarginBoxRectangle()
Gets the rectangle in which page margin box contents should be shown.
|
String |
name()
Gets the name of the element node.
|
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, setStylesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChild, childNodes, parentNodegetStyles, 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.public Rectangle getContainingBlockForMarginBox()
Rectangle which is used as a reference for some
margin box relative properties calculations.public String name()
IElementNodename in interface IElementNodepublic IAttributes getAttributes()
IElementNodegetAttributes in interface IElementNodepublic String getAttribute(String key)
IElementNodegetAttribute in interface IElementNodekey - the key of the attribute we want to getpublic List<Map<String,String>> getAdditionalHtmlStyles()
IElementNodegetAdditionalHtmlStyles in interface IElementNodepublic void addAdditionalHtmlStyles(Map<String,String> styles)
IElementNodeaddAdditionalHtmlStyles in interface IElementNodestyles - the stylespublic String getLang()
IElementNodegetLang in interface IElementNodeCopyright © 1998–2023 iText Group NV. All rights reserved.