Package com.aowagie.text.pdf.hyphenation
Class Hyphenator
java.lang.Object
com.aowagie.text.pdf.hyphenation.Hyphenator
This class is the main entry point to the hyphenation package.
You can use only the static methods or create an instance.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private static String
Holds value of property hyphenDir.private HyphenationTree
private static Hashtable
TODO: Don't use staticsprivate int
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static HyphenationTree
private static HyphenationTree
getHyphenationTree
(String lang, String country) private static HyphenationTree
void
setMinPushCharCount
(int min) void
setMinRemainCharCount
(int min)
-
Field Details
-
hyphenTrees
TODO: Don't use statics -
hyphenTree
-
remainCharCount
private int remainCharCount -
pushCharCount
private int pushCharCount -
defaultHyphLocation
- See Also:
-
hyphenDir
Holds value of property hyphenDir.
-
-
Constructor Details
-
Hyphenator
- Parameters:
lang
- language to setcountry
- country to setleftMin
- left minimum to setrightMin
- right minimum to set
-
-
Method Details
-
getHyphenationTree
- Parameters:
lang
-country
-- Returns:
- the hyphenation tree
-
getResourceHyphenationTree
- Parameters:
key
-- Returns:
- a hyphenation tree
-
getFileHyphenationTree
- Parameters:
key
-- Returns:
- a hyphenation tree
-
setMinRemainCharCount
public void setMinRemainCharCount(int min) - Parameters:
min
- minimum to set
-
setMinPushCharCount
public void setMinPushCharCount(int min) - Parameters:
min
- minimum to set
-
hyphenate
- Parameters:
word
- word to set- Returns:
- a hyphenation object
-