public static class WordBreakers.DefaultWordBreaker extends WordBreakers.AbstractWordBreaker
| Constructor and Description |
|---|
DefaultWordBreaker() |
| Modifier and Type | Method and Description |
|---|---|
protected Pair<String> |
breakWordSoft(String word,
FontDescriptor fontDescriptor,
float maxWidth)
To be implemented by subclasses.
|
breakWord, breakWordHardprotected Pair<String> breakWordSoft(String word, FontDescriptor fontDescriptor, float maxWidth) throws IOException
WordBreakers.AbstractWordBreakernull.breakWordSoft in class WordBreakers.AbstractWordBreakerword - the word to break.fontDescriptor - describing the font's type and size.maxWidth - the maximum width to obey.null if it cannot be broken.IOException - by pdfboxCopyright © 2022. All rights reserved.