Class Hyphenation
java.lang.Object
com.itextpdf.text.pdf.hyphenation.Hyphenation
This class represents a hyphenated word.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int[]private intnumber of hyphenation points in wordprivate String -
Constructor Summary
ConstructorsConstructorDescriptionHyphenation(String word, int[] points) rawWord as made of alternating strings andHypheninstances -
Method Summary
Modifier and TypeMethodDescriptionint[]getPostHyphenText(int index) getPreHyphenText(int index) intlength()toString()
-
Field Details
-
hyphenPoints
private int[] hyphenPoints -
word
-
len
private int lennumber of hyphenation points in word
-
-
Constructor Details
-
Hyphenation
rawWord as made of alternating strings andHypheninstances
-
-
Method Details
-
length
public int length()- Returns:
- the number of hyphenation points in the word
-
getPreHyphenText
- Returns:
- the pre-break text, not including the hyphen character
-
getPostHyphenText
- Returns:
- the post-break text
-
getHyphenationPoints
public int[] getHyphenationPoints()- Returns:
- the hyphenation points
-
toString
-