Class DefaultSplitCharacters

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

public class DefaultSplitCharacters extends Object implements ISplitCharacters
The default implementation of ISplitCharacters interface.
  • Constructor Details

    • DefaultSplitCharacters

      public DefaultSplitCharacters()
  • 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.