Class BasicTextPainter.BasicMark

  • All Implemented Interfaces:
    Mark
    Enclosing class:
    BasicTextPainter

    protected static class BasicTextPainter.BasicMark
    extends java.lang.Object
    implements Mark
    This TextPainter's implementation of the Mark interface.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BasicMark​(TextNode node, TextHit hit)
      Constructs a new Mark with the specified parameters.
    • Constructor Detail

      • BasicMark

        protected BasicMark​(TextNode node,
                            TextHit hit)
        Constructs a new Mark with the specified parameters.
    • Method Detail

      • getCharIndex

        public int getCharIndex()
        Returns the index of the character that has been hit.
        Specified by:
        getCharIndex in interface Mark
        Returns:
        The character index.