|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.pdf.hyphenation.Hyphenator
public class 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 | |
---|---|
private static java.lang.String |
defaultHyphLocation
|
private static java.lang.String |
hyphenDir
Holds value of property hyphenDir. |
private HyphenationTree |
hyphenTree
|
private static java.util.Hashtable |
hyphenTrees
TODO: Don't use statics |
private int |
pushCharCount
|
private int |
remainCharCount
|
Constructor Summary | |
---|---|
Hyphenator(java.lang.String lang,
java.lang.String country,
int leftMin,
int rightMin)
|
Method Summary | |
---|---|
static HyphenationTree |
getFileHyphenationTree(java.lang.String key)
|
static HyphenationTree |
getHyphenationTree(java.lang.String lang,
java.lang.String country)
|
static java.lang.String |
getHyphenDir()
Getter for property hyphenDir. |
static HyphenationTree |
getResourceHyphenationTree(java.lang.String key)
|
Hyphenation |
hyphenate(char[] word,
int offset,
int len)
|
Hyphenation |
hyphenate(java.lang.String word)
|
static Hyphenation |
hyphenate(java.lang.String lang,
java.lang.String country,
char[] word,
int offset,
int len,
int leftMin,
int rightMin)
|
static Hyphenation |
hyphenate(java.lang.String lang,
java.lang.String country,
java.lang.String word,
int leftMin,
int rightMin)
|
static void |
setHyphenDir(java.lang.String _hyphenDir)
Setter for property hyphenDir. |
void |
setLanguage(java.lang.String lang,
java.lang.String country)
|
void |
setMinPushCharCount(int min)
|
void |
setMinRemainCharCount(int min)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.util.Hashtable hyphenTrees
private HyphenationTree hyphenTree
private int remainCharCount
private int pushCharCount
private static final java.lang.String defaultHyphLocation
private static java.lang.String hyphenDir
Constructor Detail |
---|
public Hyphenator(java.lang.String lang, java.lang.String country, int leftMin, int rightMin)
lang
- country
- leftMin
- rightMin
- Method Detail |
---|
public static HyphenationTree getHyphenationTree(java.lang.String lang, java.lang.String country)
lang
- country
-
public static HyphenationTree getResourceHyphenationTree(java.lang.String key)
key
-
public static HyphenationTree getFileHyphenationTree(java.lang.String key)
key
-
public static Hyphenation hyphenate(java.lang.String lang, java.lang.String country, java.lang.String word, int leftMin, int rightMin)
lang
- country
- word
- leftMin
- rightMin
-
public static Hyphenation hyphenate(java.lang.String lang, java.lang.String country, char[] word, int offset, int len, int leftMin, int rightMin)
lang
- country
- word
- offset
- len
- leftMin
- rightMin
-
public void setMinRemainCharCount(int min)
min
- public void setMinPushCharCount(int min)
min
- public void setLanguage(java.lang.String lang, java.lang.String country)
lang
- country
- public Hyphenation hyphenate(char[] word, int offset, int len)
word
- offset
- len
-
public Hyphenation hyphenate(java.lang.String word)
word
-
public static java.lang.String getHyphenDir()
public static void setHyphenDir(java.lang.String _hyphenDir)
_hyphenDir
- New value of property hyphenDir.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |