public class BodyHtmlStylesContainer extends Object implements com.itextpdf.layout.IPropertyContainer
and 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) |
|
getDefaultProperty(int property) |
|
getOwnProperty(int property) |
|
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.IPropertyContainer
public boolean hasProperty(int property)
hasProperty in interface com.itextpdf.layout.IPropertyContainer
public boolean hasOwnProperty(int property)
hasOwnProperty in interface com.itextpdf.layout.IPropertyContainer
public void deleteOwnProperty(int property)
deleteOwnProperty in interface com.itextpdf.layout.IPropertyContainer
publicT1 getProperty(int property)
getProperty in interface com.itextpdf.layout.IPropertyContainer
publicT1 getOwnProperty(int property)
getOwnProperty in interface com.itextpdf.layout.IPropertyContainer
publicT1 getDefaultProperty(int property)
getDefaultProperty in interface com.itextpdf.layout.IPropertyContainer
public boolean hasContentToDraw()
Div element, i.e. to perform any drawing at all.
Border or a Background or a BackgroundImage present in the container
public boolean hasStylesToApply()
public float[] getTotalWidth()
Copyright © 1998–2019 iText Group NV. All rights reserved.