com.itextpdf.tool.xml.html
Interface CssAppliers

All Known Implementing Classes:
CssAppliersImpl

public interface CssAppliers

Author:
redlab

Method Summary
 Element apply(Element e, Tag t, HtmlPipelineContext ctx)
          Convenience method.
 Element apply(Element e, Tag t, MarginMemory mm, PageSizeContainable psc, ImageProvider ip)
          Given the element e, this method will lookup the right applier for the given Element.
 CssAppliers clone()
           
 ChunkCssApplier getChunkCssAplier()
           
 void setChunkCssAplier(ChunkCssApplier chunkCssAplier)
           
 

Method Detail

apply

Element apply(Element e,
              Tag t,
              MarginMemory mm,
              PageSizeContainable psc,
              ImageProvider ip)
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:
  1. Chunk
  2. Paragraph
  3. NoNewLineParagraph
  4. HtmlCell
  5. List
  6. LineSeparator
  7. Image

Parameters:
e - the Element
t - the tag
mm - the MarginMemory
psc - the PageSize container
ip - an ImageProvider
Returns:
the element with CSS applied onto, note: the element can be a new element.

apply

Element apply(Element e,
              Tag t,
              HtmlPipelineContext ctx)
Convenience method.

Parameters:
e - the Element
t - the tag
ctx - the Context object
Returns:
the element with CSS applied onto, note: the element can be a new element.
See Also:
apply(Element, Tag, MarginMemory, PageSizeContainable, ImageProvider)

getChunkCssAplier

ChunkCssApplier getChunkCssAplier()
Returns:
the chunk css applier

setChunkCssAplier

void setChunkCssAplier(ChunkCssApplier chunkCssAplier)

clone

CssAppliers clone()


Copyright © 2015. All Rights Reserved.