Class ElementFactory


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

      • 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 Detail

      • ElementFactory

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

      • 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​(java.lang.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,
                                                  java.lang.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​(java.util.Map<java.lang.String,​java.lang.String> attrs,
                                                 float offset)
        Deprecated.
        Creates a LineSeparator.
        Parameters:
        attrs - the attributes
        offset -
        Returns:
        a LineSeparator
        Since:
        5.0.6
      • createImage

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

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