com.lowagie.text.pdf.hyphenation

Class Hyphenation

public class Hyphenation extends Object

This class represents a hyphenated word.

Author: Carlos Villegas

Field Summary
int[]hyphenPoints
intlen
number of hyphenation points in word
Stringword
Constructor Summary
Hyphenation(String word, int[] points)
rawWord as made of alternating strings and Hyphen instances
Method Summary
int[]getHyphenationPoints()
StringgetPostHyphenText(int index)
StringgetPreHyphenText(int index)
intlength()
StringtoString()

Field Detail

hyphenPoints

private int[] hyphenPoints

len

private int len
number of hyphenation points in word

word

private String word

Constructor Detail

Hyphenation

Hyphenation(String word, int[] points)
rawWord as made of alternating strings and Hyphen instances

Method Detail

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()