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 Stringprivate static StringHolds value of property hyphenDir.private HyphenationTreeprivate static HashtableTODO: Don't use staticsprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static HyphenationTreeprivate static HyphenationTreegetHyphenationTree(String lang, String country) private static HyphenationTreevoidsetMinPushCharCount(int min) voidsetMinRemainCharCount(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
-
-
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
-