Class ElementFactory

java.lang.Object
com.itextpdf.text.html.simpleparser.ElementFactory

@Deprecated public class ElementFactory extends Object
Deprecated.
since 5.5.2
Factory that produces iText Element objects, based on tags and their properties.
Since:
5.0.6 (renamed)
  • Field Details

    • provider

      private FontProvider provider
      Deprecated.
      The font provider that will be used to fetch fonts.
      Since:
      iText 5.0 This used to be a FontFactoryImp
  • Constructor Details

    • ElementFactory

      public ElementFactory()
      Deprecated.
      Creates a new instance of FactoryProperties.
  • Method Details

    • setFontProvider

      public void setFontProvider(FontProvider provider)
      Deprecated.
      Setter for the font provider
      Parameters:
      provider -
      Since:
      5.0.6 renamed from setFontImp
    • getFontProvider

      public FontProvider getFontProvider()
      Deprecated.
      Getter for the font provider
      Returns:
      provider
      Since:
      5.0.6 renamed from getFontImp
    • getFont

      public Font getFont(ChainedProperties chain)
      Deprecated.
      Creates a Font object based on a chain of properties.
      Parameters:
      chain - chain of properties
      Returns:
      an iText Font object
    • createChunk

      public Chunk createChunk(String content, ChainedProperties chain)
      Deprecated.
      Creates an iText Chunk
      Parameters:
      content - the content of the Chunk
      chain - the hierarchy chain
      Returns:
      a Chunk
    • createParagraph

      public Paragraph createParagraph(ChainedProperties chain)
      Deprecated.
      Creates an iText Paragraph object using the properties of the different tags and properties in the hierarchy chain.
      Parameters:
      chain - the hierarchy chain
      Returns:
      a Paragraph without any content
    • createListItem

      public ListItem createListItem(ChainedProperties chain)
      Deprecated.
      Creates an iText Paragraph object using the properties of the different tags and properties in the hierarchy chain.
      Parameters:
      chain - the hierarchy chain
      Returns:
      a ListItem without any content
    • updateElement

      protected void updateElement(Paragraph paragraph, ChainedProperties chain)
      Deprecated.
      Method that does the actual Element creating for the createParagraph and createListItem method.
      Parameters:
      paragraph -
      chain -
    • setParagraphLeading

      protected static void setParagraphLeading(Paragraph paragraph, String leading)
      Deprecated.
      Sets the leading of a Paragraph object.
      Parameters:
      paragraph - the Paragraph for which we set the leading
      leading - the String value of the leading
    • getHyphenation

      public HyphenationEvent getHyphenation(ChainedProperties chain)
      Deprecated.
      Gets a HyphenationEvent based on the hyphenation entry in the hierarchy chain.
      Parameters:
      chain - the hierarchy chain
      Returns:
      a HyphenationEvent
      Since:
      2.1.2
    • createLineSeparator

      public LineSeparator createLineSeparator(Map<String,String> attrs, float offset)
      Deprecated.
      Creates a LineSeparator.
      Parameters:
      attrs - the attributes
      offset -
      Returns:
      a LineSeparator
      Since:
      5.0.6
    • createImage

      public Image createImage(String src, Map<String,String> attrs, ChainedProperties chain, DocListener document, ImageProvider img_provider, HashMap<String,Image> img_store, String img_baseurl) throws DocumentException, IOException
      Deprecated.
      Parameters:
      src -
      attrs -
      chain -
      document -
      img_provider -
      img_store -
      img_baseurl -
      Returns:
      the Image
      Throws:
      DocumentException
      IOException
    • createList

      public List createList(String tag, ChainedProperties chain)
      Deprecated.
      Parameters:
      tag -
      chain -
      Returns:
      the List