Class RDocumentCharSequence

java.lang.Object
org.fife.ui.rtextarea.RDocumentCharSequence
All Implemented Interfaces:
CharSequence

class RDocumentCharSequence extends Object implements CharSequence
Allows iterating over a portion of an RDocument. This is of course not thread-safe, so should only be used on the EDT or with external synchronization.
Version:
1.0
  • Field Details

    • doc

      private RDocument doc
    • start

      private int start
    • end

      private int end
  • Constructor Details

    • RDocumentCharSequence

      RDocumentCharSequence(RDocument doc, int start)
      Creates a CharSequence representing the text in a document from the specified offset to the end of that document.
      Parameters:
      doc - The document.
      start - The starting offset in the document, inclusive.
    • RDocumentCharSequence

      RDocumentCharSequence(RDocument doc, int start, int end)
      Constructor.
      Parameters:
      doc - The document.
      start - The starting offset in the document, inclusive.
      end - the ending offset in the document, exclusive.
  • Method Details