Class VerticalAlignmentApplierUtil
java.lang.Object
com.itextpdf.html2pdf.css.apply.util.VerticalAlignmentApplierUtil
Utilities class to apply vertical alignment values.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyVerticalAlignmentForBlocks(Map<String, String> cssProps, com.itextpdf.layout.IPropertyContainer element, boolean isInlineTag) Apply vertical alignment to inline elements.static voidapplyVerticalAlignmentForCells(Map<String, String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element) Applies vertical alignment to cells.static voidapplyVerticalAlignmentForInlines(Map<String, String> cssProps, ProcessorContext context, com.itextpdf.styledxmlparser.node.IStylesContainer stylesContainer, List childElements) Apply vertical alignment to inline elements.
-
Method Details
-
applyVerticalAlignmentForCells
public static void applyVerticalAlignmentForCells(Map<String, String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element) Applies vertical alignment to cells.- Parameters:
-
cssProps- the CSS properties -
context- the processor context -
element- the element
-
applyVerticalAlignmentForBlocks
public static void applyVerticalAlignmentForBlocks(Map<String, String> cssProps, com.itextpdf.layout.IPropertyContainer element, boolean isInlineTag) Apply vertical alignment to inline elements.- Parameters:
-
cssProps- the CSS properties -
element- the styles container -
isInlineTag- whether the origin is a tag that defaults to inline
-
applyVerticalAlignmentForInlines
public static void applyVerticalAlignmentForInlines(Map<String, String> cssProps, ProcessorContext context, com.itextpdf.styledxmlparser.node.IStylesContainer stylesContainer, List childElements) Apply vertical alignment to inline elements.- Parameters:
-
cssProps- the CSS properties -
context- the processor context -
stylesContainer- the styles container -
childElements- the child elements
-