Package com.itextpdf.layout.splitting
Class KeepAllSplitCharacters
- java.lang.Object
-
- com.itextpdf.layout.splitting.KeepAllSplitCharacters
-
- All Implemented Interfaces:
ISplitCharacters
public class KeepAllSplitCharacters extends java.lang.Object implements ISplitCharacters
The implementation ofISplitCharactersthat prevents breaking within words.
-
-
Constructor Summary
Constructors Constructor Description KeepAllSplitCharacters()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static booleanisADigitChar(GlyphLine text, int glyphPos)booleanisSplitCharacter(GlyphLine text, int glyphPos)The splitting implementation is free to look ahead or look behind characters to make a decision.
-
-
-
Method Detail
-
isSplitCharacter
public boolean isSplitCharacter(GlyphLine text, int glyphPos)
Description copied from interface:ISplitCharactersThe splitting implementation is free to look ahead or look behind characters to make a decision.- Specified by:
isSplitCharacterin interfaceISplitCharacters- Parameters:
text- an array of unicode char codes which represent current textglyphPos- the position ofGlyphin theGlyphLine- Returns:
- true if the character can split a line.
-
isADigitChar
private static boolean isADigitChar(GlyphLine text, int glyphPos)
-
-