Class ElementFactory
- java.lang.Object
-
- com.itextpdf.text.html.simpleparser.ElementFactory
-
@Deprecated public class ElementFactory extends java.lang.Object
Deprecated.since 5.5.2Factory that produces iText Element objects, based on tags and their properties.- Since:
- 5.0.6 (renamed)
-
-
Field Summary
Fields Modifier and Type Field Description private FontProvider
provider
Deprecated.The font provider that will be used to fetch fonts.
-
Constructor Summary
Constructors Constructor Description ElementFactory()
Deprecated.Creates a new instance of FactoryProperties.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Chunk
createChunk(java.lang.String content, ChainedProperties chain)
Deprecated.Creates an iText ChunkImage
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)
Deprecated.LineSeparator
createLineSeparator(java.util.Map<java.lang.String,java.lang.String> attrs, float offset)
Deprecated.Creates a LineSeparator.List
createList(java.lang.String tag, ChainedProperties chain)
Deprecated.ListItem
createListItem(ChainedProperties chain)
Deprecated.Creates an iText Paragraph object using the properties of the different tags and properties in the hierarchy chain.Paragraph
createParagraph(ChainedProperties chain)
Deprecated.Creates an iText Paragraph object using the properties of the different tags and properties in the hierarchy chain.Font
getFont(ChainedProperties chain)
Deprecated.Creates a Font object based on a chain of properties.FontProvider
getFontProvider()
Deprecated.Getter for the font providerHyphenationEvent
getHyphenation(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, java.lang.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 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
-
-
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 Chunkchain
- 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 leadingleading
- 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 attributesoffset
-- 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
-
-