com.lowagie.text.html.simpleparser
Class FactoryProperties

java.lang.Object
  extended by com.lowagie.text.html.simpleparser.FactoryProperties

public class FactoryProperties
extends java.lang.Object

Author:
psoares

Field Summary
static java.util.HashMap followTags
           
private  FontFactoryImp fontImp
           
 
Constructor Summary
FactoryProperties()
          Creates a new instance of FactoryProperties
 
Method Summary
 Chunk createChunk(java.lang.String text, ChainedProperties props)
           
static ListItem createListItem(ChainedProperties props)
           
static Paragraph createParagraph(ChainedProperties props)
           
static Paragraph createParagraph(java.util.HashMap props)
           
static void createParagraph(Paragraph p, ChainedProperties props)
           
 Font getFont(ChainedProperties props)
           
 FontFactoryImp getFontImp()
           
static HyphenationEvent getHyphenation(ChainedProperties props)
          Gets a HyphenationEvent based on the hyphenation entry in ChainedProperties.
static HyphenationEvent getHyphenation(java.util.HashMap props)
          Gets a HyphenationEvent based on the hyphenation entry in a HashMap.
static HyphenationEvent getHyphenation(java.lang.String s)
          Gets a HyphenationEvent based on a String.
static void insertStyle(java.util.HashMap h)
           
static void insertStyle(java.util.HashMap h, ChainedProperties cprops)
          New method contributed by Lubos Strapko
 void setFontImp(FontFactoryImp fontImp)
           
private static void setParagraphLeading(Paragraph p, java.lang.String leading)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fontImp

private FontFactoryImp fontImp

followTags

public static java.util.HashMap followTags
Constructor Detail

FactoryProperties

public FactoryProperties()
Creates a new instance of FactoryProperties

Method Detail

createChunk

public Chunk createChunk(java.lang.String text,
                         ChainedProperties props)

setParagraphLeading

private static void setParagraphLeading(Paragraph p,
                                        java.lang.String leading)

createParagraph

public static Paragraph createParagraph(java.util.HashMap props)

createParagraph

public static void createParagraph(Paragraph p,
                                   ChainedProperties props)

createParagraph

public static Paragraph createParagraph(ChainedProperties props)

createListItem

public static ListItem createListItem(ChainedProperties props)

getFont

public Font getFont(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.HashMap h)

insertStyle

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

Parameters:
h -
cprops -
Since:
2.1.3

getFontImp

public FontFactoryImp getFontImp()

setFontImp

public void setFontImp(FontFactoryImp fontImp)

Hosted by Hostbasket