Package com.itextpdf.layout.splitting
Class KeepAllSplitCharacters
java.lang.Object
com.itextpdf.layout.splitting.KeepAllSplitCharacters
- All Implemented Interfaces:
ISplitCharacters
The implementation of
ISplitCharacters
that prevents breaking within words.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
isADigitChar
(GlyphLine text, int glyphPos) boolean
isSplitCharacter
(GlyphLine text, int glyphPos) The splitting implementation is free to look ahead or look behind characters to make a decision.
-
Constructor Details
-
KeepAllSplitCharacters
public KeepAllSplitCharacters()
-
-
Method Details
-
isSplitCharacter
Description copied from interface:ISplitCharacters
The splitting implementation is free to look ahead or look behind characters to make a decision.- Specified by:
isSplitCharacter
in interfaceISplitCharacters
- Parameters:
text
- an array of unicode char codes which represent current textglyphPos
- the position ofGlyph
in theGlyphLine
- Returns:
- true if the character can split a line.
-
isADigitChar
-