Class SegmentBuffer

  • All Implemented Interfaces:
    java.lang.CharSequence, java.lang.Cloneable, java.text.CharacterIterator

    public class SegmentBuffer
    extends javax.swing.text.Segment
    An extended segment that you can append text to.
    • Field Summary

      • Fields inherited from class javax.swing.text.Segment

        array, count, offset
      • Fields inherited from interface java.text.CharacterIterator

        DONE
    • Constructor Summary

      Constructors 
      Constructor Description
      SegmentBuffer​(int capacity)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void append​(char ch)  
      void append​(char[] text)  
      void append​(char[] text, int off, int len)  
      void insert​(int index, char[] str)
      Insert some text
      void insert​(int index, char[] str, int offset, int len)
      Insert some text
      • Methods inherited from class javax.swing.text.Segment

        charAt, clone, current, first, getBeginIndex, getEndIndex, getIndex, isPartialReturn, last, length, next, previous, setIndex, setPartialReturn, subSequence, toString
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.CharSequence

        chars, codePoints
    • Constructor Detail

      • SegmentBuffer

        public SegmentBuffer​(int capacity)
    • Method Detail

      • append

        public void append​(char ch)
      • append

        public void append​(char[] text)
        Parameters:
        text - the text to append
        Since:
        jEdit 5.7pre1
      • append

        public void append​(char[] text,
                           int off,
                           int len)
      • insert

        public void insert​(int index,
                           char[] str)
        Insert some text
        Parameters:
        index - the position where the text will be inserted
        str - the text to insert
        Since:
        jEdit 5.7pre1
      • insert

        public void insert​(int index,
                           char[] str,
                           int offset,
                           int len)
        Insert some text
        Parameters:
        index - the position where the text will be inserted
        str - the text to insert
        offset - the start position in the inserted array
        len - the length to be copied
        Since:
        jEdit 5.7pre1