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.Segment
An 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 void
append(char ch)
void
append(char[] text)
void
append(char[] text, int off, int len)
void
insert(int index, char[] str)
Insert some textvoid
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
-
-
-
-
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
-
-