com.itextpdf.tool.xml.html
Class CssAppliersImpl
java.lang.Object
com.itextpdf.tool.xml.html.CssAppliersImpl
- All Implemented Interfaces:
- CssAppliers
public class CssAppliersImpl
- extends Object
- implements CssAppliers
Applies CSS to an Element using the appliers from the com.itextpdf.tool.xml.css.apply
.
- Author:
- redlab_b
chunk
protected ChunkCssApplier chunk
paragraph
protected ParagraphCssApplier paragraph
CssAppliersImpl
public CssAppliersImpl()
CssAppliersImpl
public CssAppliersImpl(FontProvider fontProvider)
apply
public Element apply(Element e,
Tag t,
MarginMemory mm,
PageSizeContainable psc,
ImageProvider ip)
- 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:
Chunk
Paragraph
NoNewLineParagraph
HtmlCell
List
LineSeparator
Image
- Specified by:
apply
in interface CssAppliers
- Parameters:
e
- the Elementt
- the tagmm
- the MarginMemorypsc
- the PageSize
containerip
- an ImageProvider
- Returns:
- the element with CSS applied onto, note: the element can be a new element.
apply
public Element apply(Element e,
Tag t,
HtmlPipelineContext ctx)
- Description copied from interface:
CssAppliers
- Convenience method.
- Specified by:
apply
in interface CssAppliers
- 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:
CssAppliers.apply(Element, Tag, MarginMemory, PageSizeContainable, ImageProvider)
getChunkCssAplier
public ChunkCssApplier getChunkCssAplier()
- Specified by:
getChunkCssAplier
in interface CssAppliers
- Returns:
- the chunk css applier
setChunkCssAplier
public void setChunkCssAplier(ChunkCssApplier chunkCssAplier)
- Specified by:
setChunkCssAplier
in interface CssAppliers
clone
public CssAppliers clone()
- Specified by:
clone
in interface CssAppliers
- Overrides:
clone
in class Object
Copyright © 2015. All Rights Reserved.