org.apache.fop.layout.hyphenation
Class Hyphenator
java.lang.Object
org.apache.fop.layout.hyphenation.Hyphenator
public class Hyphenator
- extends Object
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
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 |
Hyphenation |
hyphenate(char[] word,
int offset,
int len)
|
Hyphenation |
hyphenate(String word)
|
static Hyphenation |
hyphenate(String lang,
String country,
char[] word,
int offset,
int len,
int leftMin,
int rightMin)
|
static Hyphenation |
hyphenate(String lang,
String country,
String word,
int leftMin,
int rightMin)
|
void |
setLanguage(String 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 |
Hyphenator
public Hyphenator(String lang,
String country,
int leftMin,
int rightMin)
getHyphenationTree
public static HyphenationTree getHyphenationTree(String lang,
String country)
getFopHyphenationTree
public static HyphenationTree getFopHyphenationTree(String key)
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)
setMinRemainCharCount
public void setMinRemainCharCount(int min)
setMinPushCharCount
public void setMinPushCharCount(int min)
setLanguage
public void setLanguage(String lang,
String country)
hyphenate
public Hyphenation hyphenate(char[] word,
int offset,
int len)
hyphenate
public Hyphenation hyphenate(String word)
Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.