StringBuilder
that also contains the current cursor position.
Modifier and Type | Field and Description |
---|---|
private int[] | |
private int | |
private int | |
private int | |
private int |
Access | Constructor and Description |
---|---|
public | |
public | |
private |
Modifier and Type | Method and Description |
---|---|
private int | |
public int | |
public int | Returns: the number of characters backed upImplements jdk. Issue num backspaces. |
public boolean | Returns: true if successfulImplements jdk. Issue a backspace. |
public boolean | |
public BufferImpl | |
public void | |
public boolean | |
public int | |
public int | |
public boolean | cursor(int position)
Implements jdk. Move the cursor position to the specified absolute index. |
public int | |
public boolean | |
public boolean | |
private int | |
public int | |
public int | Returns: The number of spaces we movedIf less than 0, move abs(where) to the left, otherwise move where to the right. num)Implements jdk. Move the cursor where characters. |
private void | |
public boolean | |
public int | |
public int | |
public String | |
public String | |
public String | toString()
Overrides java. Implements jdk. Returns a string representation of the object. |
public boolean | |
public String | |
public void | write(int
the character to insert c)Implements jdk. Write the specific character into the buffer, setting the cursor position ahead one. |
public void | write(int
the character to insert c, boolean overTyping)Implements jdk. Write the specific character into the buffer, setting the cursor position ahead one. |
public void | write(CharSequence str)
Implements jdk. Insert the specified chars into the buffer, setting the cursor to the end of the insertion point. |
public void | |
private void | |
public void |
buffer | back to summary |
---|---|
private int[] buffer |
cursor | back to summary |
---|---|
private int cursor |
cursorCol | back to summary |
---|---|
private int cursorCol |
g0 | back to summary |
---|---|
private int g0 |
g1 | back to summary |
---|---|
private int g1 |
BufferImpl | back to summary |
---|---|
public BufferImpl() |
BufferImpl | back to summary |
---|---|
public BufferImpl(int size) |
BufferImpl | back to summary |
---|---|
private BufferImpl(BufferImpl buffer) |
adjust | back to summary |
---|---|
private int adjust(int i) |
atChar | back to summary |
---|---|
public int atChar(int i) Implements jdk. |
backspace | back to summary |
---|---|
public int backspace(final int num) Implements jdk. Issue num backspaces.
|
backspace | back to summary |
---|---|
public boolean backspace() Implements jdk. Issue a backspace.
|
clear | back to summary |
---|---|
public boolean clear() Implements jdk. |
copy | back to summary |
---|---|
public BufferImpl copy() Implements jdk. |
copyFrom | back to summary |
---|---|
public void copyFrom(Buffer buf) Implements jdk. |
currChar | back to summary |
---|---|
public boolean currChar(int ch) Implements jdk. |
currChar | back to summary |
---|---|
public int currChar() Implements jdk. |
cursor | back to summary |
---|---|
public int cursor() Implements jdk. |
cursor | back to summary |
---|---|
public boolean cursor(int position) Implements jdk. Move the cursor position to the specified absolute index. |
delete | back to summary |
---|---|
public int delete(int num) Implements jdk. |
delete | back to summary |
---|---|
public boolean delete() Implements jdk. |
down | back to summary |
---|---|
public boolean down() Implements jdk. |
getCursorCol | back to summary |
---|---|
private int getCursorCol() |
length | back to summary |
---|---|
public int length() Implements jdk. |
move | back to summary |
---|---|
public int move(final int num) Implements jdk. Move the cursor where characters.
|
moveGapToCursor | back to summary |
---|---|
private void moveGapToCursor() |
moveXY | back to summary |
---|---|
public boolean moveXY(int dx, int dy) Implements jdk. |
nextChar | back to summary |
---|---|
public int nextChar() Implements jdk. |
prevChar | back to summary |
---|---|
public int prevChar() Implements jdk. |
substring | back to summary |
---|---|
public String substring(int start) Implements jdk. |
substring | back to summary |
---|---|
public String substring(int start, int end) Implements jdk. |
toString | back to summary |
---|---|
public String toString() Overrides java. Implements jdk. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- |
up | back to summary |
---|---|
public boolean up() Implements jdk. |
upToCursor | back to summary |
---|---|
public String upToCursor() Implements jdk. |
write | back to summary |
---|---|
public void write(int c) Implements jdk. Write the specific character into the buffer, setting the cursor position ahead one.
|
write | back to summary |
---|---|
public void write(int c, boolean overTyping) Implements jdk. Write the specific character into the buffer, setting the cursor position
ahead one. The text may overwrite or insert based on the current setting
of
|
write | back to summary |
---|---|
public void write(CharSequence str) Implements jdk. Insert the specified chars into the buffer, setting the cursor to the end of the insertion point. |
write | back to summary |
---|---|
public void write(CharSequence str, boolean overTyping) Implements jdk. |
write | back to summary |
---|---|
private void write(int[] ucps) |
zeroOut | back to summary |
---|---|
public void zeroOut() Implements jdk. Doc from jdk. Clear any internal buffer.
|