Class FactoryProperties
- java.lang.Object
-
- com.lowagie.text.html.simpleparser.FactoryProperties
-
public class FactoryProperties extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Map<java.lang.String,java.lang.String>
followTags
private FontProvider
fontImp
-
Constructor Summary
Constructors Constructor Description FactoryProperties()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Chunk
createChunk(java.lang.String text, ChainedProperties props)
static ListItem
createListItem(ChainedProperties props)
static Paragraph
createParagraph(ChainedProperties props)
static void
createParagraph(Paragraph paragraph, ChainedProperties props)
Font
getFont(ChainedProperties props)
FontProvider
getFontImp()
static HyphenationEvent
getHyphenation(ChainedProperties props)
Gets a HyphenationEvent based on the hyphenation entry in ChainedProperties.static HyphenationEvent
getHyphenation(java.lang.String s)
Gets a HyphenationEvent based on a String.static HyphenationEvent
getHyphenation(java.util.HashMap props)
Gets a HyphenationEvent based on the hyphenation entry in a HashMap.static void
insertStyle(java.util.Map<java.lang.String,java.lang.String> 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 void
insertStyle(java.util.Map<java.lang.String,java.lang.String> h, ChainedProperties cprops)
New method contributed by Lubos Strapkovoid
setFontImp(FontProvider fontImp)
private static void
setParagraphLeading(Paragraph paragraph, java.lang.String leading)
-
-
-
Field Detail
-
followTags
public static java.util.Map<java.lang.String,java.lang.String> followTags
-
fontImp
private FontProvider fontImp
- Since:
- iText 5.0 This used to be a FontFactoryImp
-
-
Method Detail
-
setParagraphLeading
private static void setParagraphLeading(Paragraph paragraph, java.lang.String leading)
-
createParagraph
public static void createParagraph(Paragraph paragraph, ChainedProperties props)
-
createParagraph
public static Paragraph createParagraph(ChainedProperties props)
-
createListItem
public static ListItem createListItem(ChainedProperties props)
-
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(java.util.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(java.lang.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(java.util.Map<java.lang.String,java.lang.String> 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 Map that should have at least a key named style. After this method is invoked, more keys could be added.
-
insertStyle
public static void insertStyle(java.util.Map<java.lang.String,java.lang.String> h, ChainedProperties cprops)
New method contributed by Lubos Strapko- Parameters:
h
- a Mapcprops
- the ChainedProperties- Since:
- 2.1.3
-
createChunk
public Chunk createChunk(java.lang.String text, ChainedProperties props)
-
getFont
public Font getFont(ChainedProperties props)
-
getFontImp
public FontProvider getFontImp()
-
setFontImp
public void setFontImp(FontProvider fontImp)
-
-