Class Hyphenation
- java.lang.Object
-
- com.itextpdf.text.pdf.hyphenation.Hyphenation
-
public class Hyphenation extends java.lang.Object
This class represents a hyphenated word.
-
-
Field Summary
Fields Modifier and Type Field Description private int[]
hyphenPoints
private int
len
number of hyphenation points in wordprivate java.lang.String
word
-
Constructor Summary
Constructors Constructor Description Hyphenation(java.lang.String word, int[] points)
rawWord as made of alternating strings andHyphen
instances
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
getHyphenationPoints()
java.lang.String
getPostHyphenText(int index)
java.lang.String
getPreHyphenText(int index)
int
length()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Hyphenation
public Hyphenation(java.lang.String word, int[] points)
rawWord as made of alternating strings andHyphen
instances
-
-
Method Detail
-
length
public int length()
- Returns:
- the number of hyphenation points in the word
-
getPreHyphenText
public java.lang.String getPreHyphenText(int index)
- Returns:
- the pre-break text, not including the hyphen character
-
getPostHyphenText
public java.lang.String getPostHyphenText(int index)
- Returns:
- the post-break text
-
getHyphenationPoints
public int[] getHyphenationPoints()
- Returns:
- the hyphenation points
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-