public class HyphenationAuto extends java.lang.Object implements HyphenationEvent
| Modifier and Type | Field and Description |
|---|---|
protected Hyphenator |
hyphenator
The hyphenator engine.
|
protected java.lang.String |
post
The second part of the hyphenated word.
|
| Constructor and Description |
|---|
HyphenationAuto(java.lang.String lang,
java.lang.String country,
int leftMin,
int rightMin)
Creates a new hyphenation instance usable in
Chunk. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHyphenatedWordPost()
Gets the second part of the hyphenated word.
|
java.lang.String |
getHyphenatedWordPre(java.lang.String word,
BaseFont font,
float fontSize,
float remainingWidth)
Hyphenates a word and returns the first part of it.
|
java.lang.String |
getHyphenSymbol()
Gets the hyphen symbol.
|
protected Hyphenator hyphenator
protected java.lang.String post
public HyphenationAuto(java.lang.String lang,
java.lang.String country,
int leftMin,
int rightMin)
Chunk.lang - the language ("en" for English, for example)country - the country ("GB" for Great-Britain or "none" for no country, for example)leftMin - the minimum number of letters before the hyphenrightMin - the minimum number of letters after the hyphenpublic java.lang.String getHyphenSymbol()
getHyphenSymbol in interface HyphenationEventpublic java.lang.String getHyphenatedWordPre(java.lang.String word,
BaseFont font,
float fontSize,
float remainingWidth)
getHyphenatedWordPost().getHyphenatedWordPre in interface HyphenationEventword - the word to hyphenatefont - the font used by this wordfontSize - the font size used by this wordremainingWidth - the width available to fit this word inpublic java.lang.String getHyphenatedWordPost()
getHyphenatedWordPre().getHyphenatedWordPost in interface HyphenationEvent