com.lowagie.text.pdf
public class HyphenationAuto extends Object implements HyphenationEvent
Field Summary | |
---|---|
protected Hyphenator | hyphenator The hyphenator engine. |
protected String | post The second part of the hyphenated word. |
Constructor Summary | |
---|---|
HyphenationAuto(String lang, String country, int leftMin, int rightMin) Creates a new hyphenation instance usable in Chunk . |
Method Summary | |
---|---|
String | getHyphenatedWordPost() Gets the second part of the hyphenated word. |
String | getHyphenatedWordPre(String word, BaseFont font, float fontSize, float remainingWidth) Hyphenates a word and returns the first part of it. |
String | getHyphenSymbol() Gets the hyphen symbol. |
Chunk
.Parameters: 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 hyphen rightMin the minimum number of letters after the hyphen
getHyphenatedWordPre()
.Returns: the second part of the hyphenated word
getHyphenatedWordPost()
.Parameters: word the word to hyphenate font the font used by this word fontSize the font size used by this word remainingWidth the width available to fit this word in
Returns: the first part of the hyphenated word including the hyphen symbol, if any
Returns: the hyphen symbol