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, setStyles
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChild, childNodes, parentNode
getStyles, 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.
public Rectangle getContainingBlockForMarginBox()
Rectangle
which is used as a reference for some margin box relative properties calculations.
public String name()
IElementNode
name
in interface IElementNode
public IAttributes getAttributes()
IElementNode
getAttributes
in interface IElementNode
public String getAttribute(String key)
IElementNode
getAttribute
in interface IElementNode
key
- the key of the attribute we want to get
public List<Map<String,String>> getAdditionalHtmlStyles()
IElementNode
getAdditionalHtmlStyles
in interface IElementNode
public void addAdditionalHtmlStyles(Map<String,String> styles)
IElementNode
addAdditionalHtmlStyles
in interface IElementNode
styles
- the styles
public String getLang()
IElementNode
getLang
in interface IElementNode
Copyright © 1998–2022 iText Group NV. All rights reserved.