public class TextSpan
extends java.lang.Object
Constructor and Description |
---|
TextSpan(int beginPosition,
int endPosition,
Style style)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getBeginPosition()
Returns the begin position in a label of this span, in glyph (i.e.
|
int |
getEndPosition()
Returns the end position in a label of this span, in glyph (i.e.
|
Style |
getStyle()
Returns the style associated with this span.
|
public TextSpan(int beginPosition, int endPosition, Style style)
beginPosition
- begin index inside the spanendPosition
- end index inside the spanstyle
- the span style.public int getBeginPosition()
public int getEndPosition()
public Style getStyle()