Package com.itextpdf.layout.splitting
Class DefaultSplitCharacters
- java.lang.Object
-
- com.itextpdf.layout.splitting.DefaultSplitCharacters
-
- All Implemented Interfaces:
ISplitCharacters
public class DefaultSplitCharacters extends java.lang.Object implements ISplitCharacters
The default implementation ofISplitCharacters
interface.
-
-
Constructor Summary
Constructors Constructor Description DefaultSplitCharacters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private 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.
-
-
-
Method Detail
-
isSplitCharacter
public boolean isSplitCharacter(GlyphLine text, int glyphPos)
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
private boolean isADigitChar(GlyphLine text, int glyphPos)
-
-