Package com.lowagie.text.pdf.hyphenation
Class Hyphenator
java.lang.Object
com.lowagie.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.
- Author:
- Carlos Villegas <cav@uniscope.co.jp>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HyphenationTreestatic HyphenationTreegetHyphenationTree(String lang, String country) static StringGetter for property hyphenDir.static HyphenationTreehyphenate(char[] word, int offset, int len) static Hyphenationstatic Hyphenationstatic voidsetHyphenDir(String _hyphenDir) Setter for property hyphenDir.voidsetLanguage(String lang, String country) voidsetMinPushCharCount(int min) voidsetMinRemainCharCount(int min)
-
Constructor Details
-
Hyphenator
- Parameters:
lang-country-leftMin-rightMin-
-
-
Method Details
-
getHyphenationTree
- Parameters:
lang-country-- Returns:
- the hyphenation tree
-
getResourceHyphenationTree
- Parameters:
key-- Returns:
- a hyphenation tree
-
getFileHyphenationTree
- Parameters:
key-- Returns:
- a hyphenation tree
-
hyphenate
public static Hyphenation hyphenate(String lang, String country, String word, int leftMin, int rightMin) - Parameters:
lang-country-word-leftMin-rightMin-- Returns:
- a hyphenation object
-
hyphenate
public static Hyphenation hyphenate(String lang, String country, char[] word, int offset, int len, int leftMin, int rightMin) - Parameters:
lang-country-word-offset-len-leftMin-rightMin-- Returns:
- a hyphenation object
-
setMinRemainCharCount
public void setMinRemainCharCount(int min) - Parameters:
min-
-
setMinPushCharCount
public void setMinPushCharCount(int min) - Parameters:
min-
-
setLanguage
- Parameters:
lang-country-
-
hyphenate
- Parameters:
word-offset-len-- Returns:
- a hyphenation object
-
hyphenate
- Parameters:
word-- Returns:
- a hyphenation object
-
getHyphenDir
Getter for property hyphenDir.- Returns:
- Value of property hyphenDir.
-
setHyphenDir
Setter for property hyphenDir.- Parameters:
_hyphenDir- New value of property hyphenDir.
-