Package com.itextpdf.tool.xml.css.apply
Class ParagraphCssApplier
- java.lang.Object
-
- com.itextpdf.tool.xml.css.apply.ParagraphCssApplier
-
- All Implemented Interfaces:
CssApplier<Paragraph>
public class ParagraphCssApplier extends java.lang.Object implements CssApplier<Paragraph>
Applies CSS on aParagraph
-
-
Field Summary
Fields Modifier and Type Field Description private CssAppliersappliers
-
Constructor Summary
Constructors Constructor Description ParagraphCssApplier(CssAppliers appliers)Construct a ParagraphCssApplier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Paragraphapply(Paragraph p, Tag t, MarginMemory configuration)Styles a paragraphParagraphapply(Paragraph p, Tag t, MarginMemory configuration, PageSizeContainable psc, HtmlPipelineContext ctx)Styles an element
-
-
-
Field Detail
-
appliers
private final CssAppliers appliers
-
-
Constructor Detail
-
ParagraphCssApplier
public ParagraphCssApplier(CssAppliers appliers)
Construct a ParagraphCssApplier.
-
-
Method Detail
-
apply
public Paragraph apply(Paragraph p, Tag t, MarginMemory configuration)
Styles a paragraph- Parameters:
p- the paragrapht- the tagconfiguration- the MarginMemory- Returns:
- a styled
Paragraph
-
apply
public Paragraph apply(Paragraph p, Tag t, MarginMemory configuration, PageSizeContainable psc, HtmlPipelineContext ctx)
Description copied from interface:CssApplierStyles an element- Specified by:
applyin interfaceCssApplier<Paragraph>- Parameters:
p- the elementt- the tagconfiguration- the MarginMemorypsc- the PageSizeContainablectx- the HtmlPipelineContext- Returns:
- a styled
Paragraph
-
-