Class InlineTextBox


  • public class InlineTextBox
    extends java.lang.Object
    Details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions.
    • Constructor Summary

      Constructors 
      Constructor Description
      InlineTextBox​(Rect boundingBox, java.lang.Integer startCharacterIndex, java.lang.Integer numCharacters)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Rect getBoundingBox()
      The bounding box in document coordinates.
      java.lang.Integer getNumCharacters()
      The number of characters in this post layout textbox substring.
      java.lang.Integer getStartCharacterIndex()
      The starting index in characters, for this post layout textbox substring.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InlineTextBox

        public InlineTextBox​(Rect boundingBox,
                             java.lang.Integer startCharacterIndex,
                             java.lang.Integer numCharacters)
    • Method Detail

      • getBoundingBox

        public Rect getBoundingBox()
        The bounding box in document coordinates. Note that scroll offset of the document is ignored.
      • getStartCharacterIndex

        public java.lang.Integer getStartCharacterIndex()
        The starting index in characters, for this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2.
      • getNumCharacters

        public java.lang.Integer getNumCharacters()
        The number of characters in this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2.