Class Hyphenator
java.lang.Object
com.lowagie.text.pdf.hyphenation.Hyphenator
Deprecated.
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 StringDeprecated.private static StringDeprecated.Holds value of property hyphenDir.private HyphenationTreeDeprecated.private static Map<String, HyphenationTree> Deprecated.TODO: Don't use staticsprivate intDeprecated.private intDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionHyphenator(String lang, String country, int leftMin, int rightMin) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic HyphenationTreeDeprecated.static HyphenationTreegetHyphenationTree(String lang, String country) Deprecated.static StringDeprecated.Getter for property hyphenDir.static HyphenationTreeDeprecated.hyphenate(char[] word, int offset, int len) Deprecated.Deprecated.static HyphenationDeprecated.static HyphenationDeprecated.static voidsetHyphenDir(String _hyphenDir) Deprecated.Setter for property hyphenDir.voidsetLanguage(String lang, String country) Deprecated.voidsetMinPushCharCount(int min) Deprecated.voidsetMinRemainCharCount(int min) Deprecated.
-
Field Details
-
defaultHyphLocation
-
hyphenTrees
-
hyphenDir
-
hyphenTree
Deprecated. -
remainCharCount
private int remainCharCountDeprecated. -
pushCharCount
private int pushCharCountDeprecated.
-
-
Constructor Details
-
Hyphenator
-
-
Method Details
-
getHyphenationTree
Deprecated.- Parameters:
lang- The languagecountry- The country- Returns:
- the hyphenation tree
-
getResourceHyphenationTree
Deprecated.- Parameters:
key- A String of the key of the hyphenation tree- Returns:
- a hyphenation tree
-
getFileHyphenationTree
Deprecated.- Parameters:
key- The language to get the tree from- Returns:
- a hyphenation tree
-
hyphenate
public static Hyphenation hyphenate(String lang, String country, String word, int leftMin, int rightMin) Deprecated.- Parameters:
lang- The languagecountry- The countryword- char array containing the wordleftMin- Minimum number of characters allowed before the hyphenation pointrightMin- Minimum number of characters allowed after the hyphenation point- Returns:
- a hyphenation object
-
hyphenate
public static Hyphenation hyphenate(String lang, String country, char[] word, int offset, int len, int leftMin, int rightMin) Deprecated.- Parameters:
lang- The languagecountry- The countryword- char array that contains the word to hyphenateoffset- Offset to the first character in wordlen- The length of the wordleftMin- Minimum number of characters allowed before the hyphenation pointrightMin- Minimum number of characters allowed after the hyphenation point- Returns:
- a hyphenation object
-
getHyphenDir
Deprecated.Getter for property hyphenDir.- Returns:
- Value of property hyphenDir.
-
setHyphenDir
Deprecated.Setter for property hyphenDir.- Parameters:
_hyphenDir- New value of property hyphenDir.
-
setMinRemainCharCount
public void setMinRemainCharCount(int min) Deprecated.- Parameters:
min- Minimum number of characters allowed before the hyphenation point
-
setMinPushCharCount
public void setMinPushCharCount(int min) Deprecated.- Parameters:
min- Minimum number of characters allowed after the hyphenation point
-
setLanguage
-
hyphenate
Deprecated.- Parameters:
word- Char array that contains the wordoffset- Offset to the first character in wordlen- Length of the word- Returns:
- a hyphenation object
-
hyphenate
Deprecated.- Parameters:
word- The word to hyphenate- Returns:
- a hyphenation object
-