Class KeepAllSplitCharacters

java.lang.Object
com.itextpdf.layout.splitting.KeepAllSplitCharacters
All Implemented Interfaces:
ISplitCharacters

public class KeepAllSplitCharacters extends Object implements ISplitCharacters
The implementation of ISplitCharacters that prevents breaking within words.
  • Constructor Details

    • KeepAllSplitCharacters

      public KeepAllSplitCharacters()
  • Method Details

    • 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 interface ISplitCharacters
      Parameters:
      text - an array of unicode char codes which represent current text
      glyphPos - the position of Glyph in the GlyphLine
      Returns:
      true if the character can split a line.