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 CssAppliers
appliers
-
Constructor Summary
Constructors Constructor Description ParagraphCssApplier(CssAppliers appliers)
Construct a ParagraphCssApplier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Paragraph
apply(Paragraph p, Tag t, MarginMemory configuration)
Styles a paragraphParagraph
apply(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:CssApplier
Styles an element- Specified by:
apply
in interfaceCssApplier<Paragraph>
- Parameters:
p
- the elementt
- the tagconfiguration
- the MarginMemorypsc
- the PageSizeContainablectx
- the HtmlPipelineContext- Returns:
- a styled
Paragraph
-
-