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