Class Hyphenation


  • public class Hyphenation
    extends java.lang.Object
    This class represents a hyphenated word.

    This class has been taken from the Apache FOP project (http://xmlgraphics.apache.org/fop/). They have been slightly modified.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int[] hyphenPoints  
    • Constructor Summary

      Constructors 
      Constructor Description
      Hyphenation​(int[] points)
      rawWord as made of alternating strings and Hyphen instances
    • Field Detail

      • hyphenPoints

        private int[] hyphenPoints
    • Constructor Detail

      • Hyphenation

        Hyphenation​(int[] points)
        rawWord as made of alternating strings and Hyphen instances
    • Method Detail

      • length

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

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