Class TextSpan

java.lang.Object
com.myscript.iink.text.TextSpan

public final class TextSpan extends Object
Describes glyphs spans in a label.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    The begin position in a label of this span, in glyph (i.e.
    final int
    The end position in a label of this span, in glyph (i.e.
    final @NotNull Style
    The style associated with this span.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TextSpan(int beginPosition, int endPosition, @NotNull Style style)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(@Nullable Object obj)
     
    int
     
    @NotNull String
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • 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 Details

    • TextSpan

      public TextSpan(int beginPosition, int endPosition, @NotNull @NotNull Style style)
      Constructor.
      Parameters:
      beginPosition - begin index inside the span
      endPosition - end index inside the span
      style - the span style.
  • Method Details

    • equals

      public boolean equals(@Nullable @Nullable Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object