Class Hyphenation


  • public class Hyphenation
    extends java.lang.Object
    This class represents a hyphenated word. This work was originally authored by Carlos Villegas cav@uniscope.co.jp
    • Method Detail

      • length

        public int length()
        Returns:
        the number of hyphenation points in the word
      • getPreHyphenText

        public java.lang.String getPreHyphenText​(int index)
        Parameters:
        index - an index position
        Returns:
        the pre-break text, not including the hyphen character
      • getPostHyphenText

        public java.lang.String getPostHyphenText​(int index)
        Parameters:
        index - an index position
        Returns:
        the post-break text
      • getHyphenationPoints

        public int[] getHyphenationPoints()
        Returns:
        the hyphenation points
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object