|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itextpdf.text.html.simpleparser.ElementFactory
public class ElementFactory
Factory that produces iText Element objects, based on tags and their properties.
| Constructor Summary | |
|---|---|
ElementFactory()
Creates a new instance of FactoryProperties. |
|
| Method Summary | |
|---|---|
Chunk |
createChunk(java.lang.String content,
ChainedProperties chain)
Creates an iText Chunk |
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)
|
LineSeparator |
createLineSeparator(java.util.Map<java.lang.String,java.lang.String> attrs,
float offset)
Creates a LineSeparator. |
List |
createList(java.lang.String tag,
ChainedProperties chain)
|
ListItem |
createListItem(ChainedProperties chain)
Creates an iText Paragraph object using the properties of the different tags and properties in the hierarchy chain. |
Paragraph |
createParagraph(ChainedProperties chain)
Creates an iText Paragraph object using the properties of the different tags and properties in the hierarchy chain. |
Font |
getFont(ChainedProperties chain)
Creates a Font object based on a chain of properties. |
FontProvider |
getFontProvider()
Getter for the font provider |
HyphenationEvent |
getHyphenation(ChainedProperties chain)
Gets a HyphenationEvent based on the hyphenation entry in the hierarchy chain. |
void |
setFontProvider(FontProvider provider)
Setter for the font provider |
protected static void |
setParagraphLeading(Paragraph paragraph,
java.lang.String leading)
Sets the leading of a Paragraph object. |
protected void |
updateElement(Paragraph paragraph,
ChainedProperties chain)
Method that does the actual Element creating for the createParagraph and createListItem method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ElementFactory()
| Method Detail |
|---|
public void setFontProvider(FontProvider provider)
provider - public FontProvider getFontProvider()
public Font getFont(ChainedProperties chain)
chain - chain of properties
public Chunk createChunk(java.lang.String content,
ChainedProperties chain)
content - the content of the Chunkchain - 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,
java.lang.String leading)
paragraph - the Paragraph for which we set the leadingleading - the String value of the leadingpublic HyphenationEvent getHyphenation(ChainedProperties chain)
chain - the hierarchy chain
public LineSeparator createLineSeparator(java.util.Map<java.lang.String,java.lang.String> attrs,
float offset)
attrs - the attributesoffset -
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
src - attrs - chain - document - img_provider - img_store - img_baseurl -
DocumentException
java.io.IOException
public List createList(java.lang.String tag,
ChainedProperties chain)
tag - chain -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||