public class BodyHtmlStylesContainer extends Object implements com.itextpdf.layout.IPropertyContainer
<html> and <body> tags,
to simplify their application on the document as an Html2PdfProperty
and to simplify their processing on the layout level.
This class is primarily meant for internal usage.| Modifier and Type | Field and Description |
|---|---|
protected Map<Integer,Object> |
properties |
| Constructor and Description |
|---|
BodyHtmlStylesContainer() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteOwnProperty(int property) |
<T1> T1 |
getDefaultProperty(int property) |
<T1> T1 |
getOwnProperty(int property) |
<T1> T1 |
getProperty(int property) |
float[] |
getTotalWidth()
This method calculates the total widths of TOP-, RIGHT-, BOTTOM- and LEFT- side styles,
each combined of widths of applied margins, borders and paddings.
|
boolean |
hasContentToDraw()
This method is needed to check if we need to draw a simulated
Div element,
i.e. |
boolean |
hasOwnProperty(int property) |
boolean |
hasProperty(int property) |
boolean |
hasStylesToApply()
This method is needed to check if there are styles applied on the current element.
|
void |
setProperty(int property,
Object value) |
public void setProperty(int property,
Object value)
setProperty in interface com.itextpdf.layout.IPropertyContainerpublic boolean hasProperty(int property)
hasProperty in interface com.itextpdf.layout.IPropertyContainerpublic boolean hasOwnProperty(int property)
hasOwnProperty in interface com.itextpdf.layout.IPropertyContainerpublic void deleteOwnProperty(int property)
deleteOwnProperty in interface com.itextpdf.layout.IPropertyContainerpublic <T1> T1 getProperty(int property)
getProperty in interface com.itextpdf.layout.IPropertyContainerpublic <T1> T1 getOwnProperty(int property)
getOwnProperty in interface com.itextpdf.layout.IPropertyContainerpublic <T1> T1 getDefaultProperty(int property)
getDefaultProperty in interface com.itextpdf.layout.IPropertyContainerpublic boolean hasContentToDraw()
Div element,
i.e. to perform any drawing at all.Border or a Background or a BackgroundImage present in the containerpublic boolean hasStylesToApply()
public float[] getTotalWidth()
Copyright © 1998–2019 iText Group NV. All rights reserved.