com.lowagie.text.html.simpleparser

Class FactoryProperties

public class FactoryProperties extends Object

Author: psoares

Field Summary
static HashMapfollowTags
FontFactoryImpfontImp
Constructor Summary
FactoryProperties()
Creates a new instance of FactoryProperties
Method Summary
ChunkcreateChunk(String text, ChainedProperties props)
static ListItemcreateListItem(ChainedProperties props)
static voidcreateParagraph(Paragraph p, ChainedProperties props)
static ParagraphcreateParagraph(ChainedProperties props)
FontgetFont(ChainedProperties props)
FontFactoryImpgetFontImp()
static HyphenationEventgetHyphenation(ChainedProperties props)
Gets a HyphenationEvent based on the hyphenation entry in ChainedProperties.
static HyphenationEventgetHyphenation(HashMap props)
Gets a HyphenationEvent based on the hyphenation entry in a HashMap.
static HyphenationEventgetHyphenation(String s)
Gets a HyphenationEvent based on a String.
static voidinsertStyle(HashMap h)
This method isn't used by iText, but you can use it to analyze the value of a style attribute inside a HashMap.
static voidinsertStyle(HashMap h, ChainedProperties cprops)
New method contributed by Lubos Strapko
voidsetFontImp(FontFactoryImp fontImp)
static voidsetParagraphLeading(Paragraph p, String leading)

Field Detail

followTags

public static HashMap followTags

fontImp

private FontFactoryImp fontImp

Constructor Detail

FactoryProperties

public FactoryProperties()
Creates a new instance of FactoryProperties

Method Detail

createChunk

public Chunk createChunk(String text, ChainedProperties props)

createListItem

public static ListItem createListItem(ChainedProperties props)

createParagraph

public static void createParagraph(Paragraph p, ChainedProperties props)

createParagraph

public static Paragraph createParagraph(ChainedProperties props)

getFont

public Font getFont(ChainedProperties props)

getFontImp

public FontFactoryImp getFontImp()

getHyphenation

public static HyphenationEvent getHyphenation(ChainedProperties props)
Gets a HyphenationEvent based on the hyphenation entry in ChainedProperties.

Parameters: props ChainedProperties

Returns: a HyphenationEvent

Since: 2.1.2

getHyphenation

public static HyphenationEvent getHyphenation(HashMap props)
Gets a HyphenationEvent based on the hyphenation entry in a HashMap.

Parameters: props a HashMap with properties

Returns: a HyphenationEvent

Since: 2.1.2

getHyphenation

public static HyphenationEvent getHyphenation(String s)
Gets a HyphenationEvent based on a String. For instance "en_UK,3,2" returns new HyphenationAuto("en", "UK", 3, 2);

Parameters: s a String, for instance "en_UK,2,2"

Returns: a HyphenationEvent

Since: 2.1.2

insertStyle

public static void insertStyle(HashMap h)
This method isn't used by iText, but you can use it to analyze the value of a style attribute inside a HashMap. The different elements of the style attribute are added to the HashMap as key-value pairs.

Parameters: h a HashMap that should have at least a key named style. After this method is invoked, more keys could be added.

insertStyle

public static void insertStyle(HashMap h, ChainedProperties cprops)
New method contributed by Lubos Strapko

Parameters: h cprops

Since: 2.1.3

setFontImp

public void setFontImp(FontFactoryImp fontImp)

setParagraphLeading

private static void setParagraphLeading(Paragraph p, String leading)