| java.lang.Object com.lowagie.text.pdf.HyphenationAuto
HyphenationAuto | public class HyphenationAuto implements HyphenationEvent(Code) | | Hyphenates words automatically accordingly to the language and country.
The hyphenator engine was taken from FOP and uses the TEX patterns. If a language
is not provided and a TEX pattern for it exists, it can be easily adapted.
author: Paulo Soares (psoares@consiste.pt) |
Constructor Summary | |
public | HyphenationAuto(String lang, String country, int leftMin, int rightMin) Creates a new hyphenation instance usable in Chunk . |
post | protected String post(Code) | | The second part of the hyphenated word.
|
HyphenationAuto | public HyphenationAuto(String lang, String country, int leftMin, int rightMin)(Code) | | Creates a new hyphenation instance usable in Chunk .
Parameters: lang - the language ("en" for english, for example) Parameters: country - the country ("GB" for Great-Britain or "none" for no country, for example) Parameters: leftMin - the minimun number of letters before the hyphen Parameters: rightMin - the minimun number of letters after the hyphen |
getHyphenSymbol | public String getHyphenSymbol()(Code) | | Gets the hyphen symbol.
the hyphen symbol |
getHyphenatedWordPost | public String getHyphenatedWordPost()(Code) | | Gets the second part of the hyphenated word. Must be called
after getHyphenatedWordPre() .
the second part of the hyphenated word |
getHyphenatedWordPre | public String getHyphenatedWordPre(String word, BaseFont font, float fontSize, float remainingWidth)(Code) | | Hyphenates a word and returns the first part of it. To get
the second part of the hyphenated word call getHyphenatedWordPost() .
Parameters: word - the word to hyphenate Parameters: font - the font used by this word Parameters: fontSize - the font size used by this word Parameters: remainingWidth - the width available to fit this word in the first part of the hyphenated word includingthe hyphen symbol, if any |
|
|