Package com.itextpdf.tool.xml.html
Class CssAppliersImpl
java.lang.Object
com.itextpdf.tool.xml.html.CssAppliersImpl
- All Implemented Interfaces:
CssAppliers
Applies CSS to an Element using the appliers from the
com.itextpdf.tool.xml.css.apply
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(Element e, Tag t, MarginMemory mm, PageSizeContainable psc, HtmlPipelineContext ctx) Given the element e, this method will lookup the right applier for the given Element.apply
(Element e, Tag t, HtmlPipelineContext ctx) Convenience method.clone()
protected CssAppliersImpl
getCssApplier
(Class<?> s) void
putCssApplier
(Class<?> s, CssApplier c) void
setChunkCssAplier
(ChunkCssApplier chunkCssAplier)
-
Field Details
-
map
-
-
Constructor Details
-
CssAppliersImpl
public CssAppliersImpl() -
CssAppliersImpl
-
-
Method Details
-
putCssApplier
-
getCssApplier
-
apply
public Element apply(Element e, Tag t, MarginMemory mm, PageSizeContainable psc, HtmlPipelineContext ctx) Description copied from interface:CssAppliers
Given the element e, this method will lookup the right applier for the given Element. The mapping is done by instance of.
order of check:- Specified by:
apply
in interfaceCssAppliers
- Parameters:
e
- the Elementt
- the tagmm
- the MarginMemorypsc
- thePageSize
containerctx
- an HtmlPipelineContext- Returns:
- the element with CSS applied onto, note: the element can be a new element.
-
apply
Description copied from interface:CssAppliers
Convenience method.- Specified by:
apply
in interfaceCssAppliers
- Parameters:
e
- the Elementt
- the tagctx
- the Context object- Returns:
- the element with CSS applied onto, note: the element can be a new element.
- See Also:
-
getChunkCssAplier
- Specified by:
getChunkCssAplier
in interfaceCssAppliers
- Returns:
- the chunk css applier
-
setChunkCssAplier
- Specified by:
setChunkCssAplier
in interfaceCssAppliers
-
clone
- Specified by:
clone
in interfaceCssAppliers
- Overrides:
clone
in classObject
-
getClonedObject
-