Package com.lowagie.text.pdf
Interface HyphenationEvent
- All Known Implementing Classes:
HyphenationAuto
public interface HyphenationEvent
Called by
Chunk
to hyphenate a word.-
Method Summary
Modifier and TypeMethodDescriptionGets the second part of the hyphenated word.getHyphenatedWordPre
(String word, BaseFont font, float fontSize, float remainingWidth) Hyphenates a word and returns the first part of it.Gets the hyphen symbol.
-
Method Details
-
getHyphenSymbol
String getHyphenSymbol()Gets the hyphen symbol.- Returns:
- the hyphen symbol
-
getHyphenatedWordPre
Hyphenates a word and returns the first part of it. To get the second part of the hyphenated word callgetHyphenatedWordPost()
.- Parameters:
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- Returns:
- the first part of the hyphenated word including the hyphen symbol, if any
-
getHyphenatedWordPost
String getHyphenatedWordPost()Gets the second part of the hyphenated word. Must be called aftergetHyphenatedWordPre()
.- Returns:
- the second part of the hyphenated word
-