org.apache.fop.layout.hyphenation
Class Hyphenation
- public class Hyphenation
This class represents a hyphenated word.
- Author:
- Carlos Villegas
Field Summary |
(package private) int[] | hyphenPoints |
(package private) int | len number of hyphenation points in word |
(package private) String | word |
Constructor Summary |
(package private) | Hyphenation(String word, int[] points) rawWord as made of alternating strings and Hyphen
instances |
hyphenPoints
int[] hyphenPoints
len
int len
- number of hyphenation points in word
word
String word
Hyphenation
Hyphenation(String word, int[] points)
- rawWord as made of alternating strings and Hyphen
instances
getHyphenationPoints
public int [] getHyphenationPoints()
- Returns: the hyphenation points
getPostHyphenText
public String getPostHyphenText(int index)
- Returns: the post-break text
getPreHyphenText
public String getPreHyphenText(int index)
- Returns: the pre-break text, not including the hyphen character
length
public int length()
- Returns: the number of hyphenation points in the word
toString
public String toString()
to Class java.lang.String