Package com.myscript.iink.text
Class TextSpan
- java.lang.Object
-
- com.myscript.iink.text.TextSpan
-
public final class TextSpan extends java.lang.ObjectDescribes glyphs spans in a label.
-
-
Field Summary
Fields Modifier and Type Field Description intbeginPositionThe begin position in a label of this span, in glyph (i.e.intendPositionThe end position in a label of this span, in glyph (i.e.@NotNull StylestyleThe style associated with this span.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(@Nullable java.lang.Object obj)inthashCode()@NotNull java.lang.StringtoString()
-
-
-
Field Detail
-
beginPosition
public final int beginPosition
The begin position in a label of this span, in glyph (i.e. grapheme cluster) count.
-
endPosition
public final int endPosition
The end position in a label of this span, in glyph (i.e. grapheme cluster) count.
-
style
@NotNull public final @NotNull Style style
The style associated with this span.
-
-
Constructor Detail
-
TextSpan
public TextSpan(int beginPosition, int endPosition, @NotNull @NotNull Style style)Constructor.- Parameters:
beginPosition- begin index inside the spanendPosition- end index inside the spanstyle- the span style.
-
-
Method Detail
-
equals
public boolean equals(@Nullable @Nullable java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-