@Deprecated public class ElementFactory extends Object
Constructor and Description |
---|
ElementFactory()
Deprecated.
Creates a new instance of FactoryProperties.
|
Modifier and Type | Method and Description |
---|---|
Chunk |
createChunk(String content, ChainedProperties chain)
Deprecated.
Creates an iText Chunk
|
Image |
createImage(String src, Map<String,String> attrs, ChainedProperties chain, DocListener document, ImageProvider img_provider, HashMap<String,Image> img_store, String img_baseurl)
Deprecated.
|
LineSeparator |
createLineSeparator(Map<String,String> attrs, float offset)
Deprecated.
Creates a LineSeparator.
|
List |
createList(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 provider
|
HyphenationEvent |
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 provider
|
protected 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.
|
public ElementFactory()
public void setFontProvider(FontProvider provider)
provider
-
public FontProvider getFontProvider()
public Font getFont(ChainedProperties chain)
chain
- chain of properties
public Chunk createChunk(String content, ChainedProperties chain)
content
- the content of the Chunk
chain
- the hierarchy chain
public Paragraph createParagraph(ChainedProperties chain)
chain
- the hierarchy chain
public ListItem createListItem(ChainedProperties chain)
chain
- the hierarchy chain
protected void updateElement(Paragraph paragraph, ChainedProperties chain)
paragraph
-
chain
-
protected static void setParagraphLeading(Paragraph paragraph, String leading)
paragraph
- the Paragraph for which we set the leading
leading
- the String value of the leading
public HyphenationEvent getHyphenation(ChainedProperties chain)
chain
- the hierarchy chain
public LineSeparator createLineSeparator(Map<String,String> attrs, float offset)
attrs
- the attributes
offset
-
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
src
-
attrs
-
chain
-
document
-
img_provider
-
img_store
-
img_baseurl
-
DocumentException
IOException
public List createList(String tag, ChainedProperties chain)
tag
-
chain
-
Copyright © 2016. All rights reserved.