Class SpanTagCssApplier
java.lang.Object
com.itextpdf.html2pdf.css.apply.impl.SpanTagCssApplier
- All Implemented Interfaces:
-
ICssApplier
ICssApplier
implementation for Span elements.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ProcessorContext context, com.itextpdf.styledxmlparser.node.IStylesContainer stylesContainer, ITagWorker tagWorker) Applies styles to an element.protected void
applyChildElementStyles
(com.itextpdf.layout.IPropertyContainer element, Map<String, String> css, ProcessorContext context, com.itextpdf.styledxmlparser.node.IStylesContainer stylesContainer) Applies styles to child elements.
-
Constructor Details
-
SpanTagCssApplier
public SpanTagCssApplier()
-
-
Method Details
-
apply
public void apply(ProcessorContext context, com.itextpdf.styledxmlparser.node.IStylesContainer stylesContainer, ITagWorker tagWorker) Description copied from interface:ICssApplier
Applies styles to an element.- Specified by:
-
apply
in interfaceICssApplier
- Parameters:
-
context
- the processor context -
stylesContainer
- the styles -
tagWorker
- the tag worker for the element
-
applyChildElementStyles
protected void applyChildElementStyles(com.itextpdf.layout.IPropertyContainer element, Map<String, String> css, ProcessorContext context, com.itextpdf.styledxmlparser.node.IStylesContainer stylesContainer) Applies styles to child elements.- Parameters:
-
element
- the element -
css
- the CSS mapping -
context
- the processor context -
stylesContainer
- the styles container
-