Package org.gjt.sp.util
Class SegmentBuffer
- java.lang.Object
-
- javax.swing.text.Segment
-
- org.gjt.sp.util.SegmentBuffer
-
- All Implemented Interfaces:
java.lang.CharSequence,java.lang.Cloneable,java.text.CharacterIterator
public class SegmentBuffer extends javax.swing.text.SegmentAn extended segment that you can append text to.
-
-
Constructor Summary
Constructors Constructor Description SegmentBuffer(int capacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(char ch)voidappend(char[] text)voidappend(char[] text, int off, int len)voidinsert(int index, char[] str)Insert some textvoidinsert(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
-
-
-
-
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 insertedstr- 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 insertedstr- the text to insertoffset- the start position in the inserted arraylen- the length to be copied- Since:
- jEdit 5.7pre1
-
-