org.apache.fop.layout.hyphenation
Class 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.
- Author:
- Carlos Villegas
Field Summary |
(package private) static Hashtable | hyphenTrees |
Constructor Summary |
Hyphenator(String lang, String country, int leftMin, int rightMin) |
Method Summary |
static HyphenationTree | getFopHyphenationTree(String key) |
static HyphenationTree | getHyphenationTree(String lang, String country) |
static HyphenationTree | getUserHyphenationTree(String key, String hyphenDir) load tree from serialized file or xml file
using configuration settings |
static Hyphenation | hyphenate(String lang, String country, String word, int leftMin, int rightMin) |
static Hyphenation | hyphenate(String lang, String country, char[] word, int offset, int len, int leftMin, int rightMin) |
Hyphenation | hyphenate(char[] word, int offset, int len) |
Hyphenation | hyphenate(String word) |
void | setLanguage(String lang, String country) |
void | setMinPushCharCount(int min) |
void | setMinRemainCharCount(int min) |
hyphenTrees
static Hashtable hyphenTrees
Hyphenator
public Hyphenator(String lang, String country, int leftMin, int rightMin)
getFopHyphenationTree
public static HyphenationTree getFopHyphenationTree(String key)
getHyphenationTree
public static HyphenationTree getHyphenationTree(String lang, String country)
getUserHyphenationTree
public static HyphenationTree getUserHyphenationTree(String key, String hyphenDir)
- load tree from serialized file or xml file
using configuration settings
hyphenate
public static Hyphenation hyphenate(String lang, String country, String word, int leftMin, int rightMin)
hyphenate
public static Hyphenation hyphenate(String lang, String country, char[] word, int offset, int len, int leftMin, int rightMin)
hyphenate
public Hyphenation hyphenate(char[] word, int offset, int len)
hyphenate
public Hyphenation hyphenate(String word)
setLanguage
public void setLanguage(String lang, String country)
setMinPushCharCount
public void setMinPushCharCount(int min)
setMinRemainCharCount
public void setMinRemainCharCount(int min)
to Class java.util.Hashtable
to Class org.apache.fop.layout.hyphenation.HyphenationTree