public class Text
extends java.lang.Object
Note: what is called glyph here, is actually a grapheme cluster. For more details refer to http://unicode.org/reports/tr29/
Modifier and Type | Method and Description |
---|---|
int |
getGlyphBeginAt(int index)
Returns the starting position in the label, in bytes, of a given glyph.
|
int |
getGlyphCount()
Returns the number of glyphs associated with this text.
|
int |
getGlyphEndAt(int index)
Returns the end position in the label, in bytes, of a given glyph.
|
java.lang.String |
getGlyphLabelAt(int index)
Returns the label of the glyph at a given index.
|
java.lang.String |
getLabel()
Returns the label of this text.
|
public final java.lang.String getLabel()
public final int getGlyphCount()
public final int getGlyphBeginAt(int index)
index
- the index of the glyph to retrieve, in glyph count.java.lang.IndexOutOfBoundsException
- when `index` is invalid.public final int getGlyphEndAt(int index)
index
- the index of the glyph to retrieve, in glyph count.java.lang.IndexOutOfBoundsException
- when `index` is invalid.public final java.lang.String getGlyphLabelAt(int index)
index
- the index of the glyph to retrieve, in glyph count.java.lang.IndexOutOfBoundsException
- when `index` is invalid.