com.lowagie.text.pdf
Interface HyphenationEvent
- HyphenationAuto
public interface HyphenationEvent
Called by Chunk
to hyphenate a word.
- Paulo Soares (psoares@consiste.pt)
getHyphenSymbol
public String getHyphenSymbol()
Gets the hyphen symbol.
getHyphenatedWordPost
public String getHyphenatedWordPost()
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)
Hyphenates a word and returns the first part of it. To get
the second part of the hyphenated word call getHyphenatedWordPost()
.
word
- the word to hyphenatefont
- the font used by this wordfontSize
- the font size used by this wordremainingWidth
- the width available to fit this word in
- the first part of the hyphenated word including
the hyphen symbol, if any