Class ElementFactory
java.lang.Object
com.itextpdf.text.html.simpleparser.ElementFactory
Deprecated.
since 5.5.2
Factory that produces iText Element objects,
based on tags and their properties.
- Since:
- 5.0.6 (renamed)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FontProvider
Deprecated.The font provider that will be used to fetch fonts. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateChunk
(String content, ChainedProperties chain) Deprecated.Creates an iText ChunkcreateImage
(String src, Map<String, String> attrs, ChainedProperties chain, DocListener document, ImageProvider img_provider, HashMap<String, Image> img_store, String img_baseurl) Deprecated.createLineSeparator
(Map<String, String> attrs, float offset) Deprecated.Creates a LineSeparator.createList
(String tag, ChainedProperties chain) Deprecated.createListItem
(ChainedProperties chain) Deprecated.Creates an iText Paragraph object using the properties of the different tags and properties in the hierarchy chain.createParagraph
(ChainedProperties chain) Deprecated.Creates an iText Paragraph object using the properties of the different tags and properties in the hierarchy chain.getFont
(ChainedProperties chain) Deprecated.Creates a Font object based on a chain of properties.Deprecated.Getter for the font providergetHyphenation
(ChainedProperties chain) Deprecated.Gets a HyphenationEvent based on the hyphenation entry in the hierarchy chain.void
setFontProvider
(FontProvider provider) Deprecated.Setter for the font providerprotected static void
setParagraphLeading
(Paragraph paragraph, String leading) Deprecated.Sets the leading of a Paragraph object.protected void
updateElement
(Paragraph paragraph, ChainedProperties chain) Deprecated.Method that does the actual Element creating for the createParagraph and createListItem method.
-
Field Details
-
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
Deprecated.Setter for the font provider- Parameters:
provider
-- Since:
- 5.0.6 renamed from setFontImp
-
getFontProvider
Deprecated.Getter for the font provider- Returns:
- provider
- Since:
- 5.0.6 renamed from getFontImp
-
getFont
Deprecated.Creates a Font object based on a chain of properties.- Parameters:
chain
- chain of properties- Returns:
- an iText Font object
-
createChunk
Deprecated.Creates an iText Chunk- Parameters:
content
- the content of the Chunkchain
- the hierarchy chain- Returns:
- a Chunk
-
createParagraph
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
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
Deprecated.Method that does the actual Element creating for the createParagraph and createListItem method.- Parameters:
paragraph
-chain
-
-
setParagraphLeading
Deprecated.Sets the leading of a Paragraph object.- Parameters:
paragraph
- the Paragraph for which we set the leadingleading
- the String value of the leading
-
getHyphenation
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
Deprecated.Creates a LineSeparator.- Parameters:
attrs
- the attributesoffset
-- 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, throws DocumentException, IOExceptionImage> img_store, String img_baseurl) Deprecated.- Parameters:
src
-attrs
-chain
-document
-img_provider
-img_store
-img_baseurl
-- Returns:
- the Image
- Throws:
DocumentException
IOException
-
createList
Deprecated.- Parameters:
tag
-chain
-- Returns:
- the List
-