| java.lang.Object javax.swing.text.GapContent
Method Summary | |
protected Object | allocateArray(int len) | public Position | createPosition(int offset) | final protected Object | getArray() | protected int | getArrayLength() | public void | getChars(int offset, int length, Segment chars) | final protected int | getGapEnd() Returns the index of the first character right after the gap. | final protected int | getGapStart() Returns the index of the first character in the gap. | protected Vector | getPositionsInRange(Vector vector, int offset, int len) This method returns a vector with instances of UndoPosRef (inner class)
which store information to restore position offset after undo/redo. | public String | getString(int offset, int length) | final void | insertItems(int where, Object addItems, int addSize) | public UndoableEdit | insertString(int offset, String str) | public int | length() | public UndoableEdit | remove(int offset, int nitems) | final void | removeItems(int where, int nitems) | protected void | replace(int position, int rmSize, Object addItems, int addSize) | protected void | resetMarksAtZero() | protected void | shiftEnd(int newSize) | protected void | shiftGap(int newGapStart) | protected void | shiftGapEndUp(int newGapEnd) | protected void | shiftGapStartDown(int newGapStart) | protected void | updateUndoPositions(Vector vector, int offset, int len) Restores offset of positions that fall into the range. |
GapContent | public GapContent()(Code) | | |
GapContent | public GapContent(int initialLength)(Code) | | |
getArrayLength | protected int getArrayLength()(Code) | | |
getGapEnd | final protected int getGapEnd()(Code) | | Returns the index of the first character right after the gap.
|
getGapStart | final protected int getGapStart()(Code) | | Returns the index of the first character in the gap.
|
getPositionsInRange | protected Vector getPositionsInRange(Vector vector, int offset, int len)(Code) | | This method returns a vector with instances of UndoPosRef (inner class)
which store information to restore position offset after undo/redo.
|
length | public int length()(Code) | | |
replace | protected void replace(int position, int rmSize, Object addItems, int addSize)(Code) | | |
resetMarksAtZero | protected void resetMarksAtZero()(Code) | | |
shiftEnd | protected void shiftEnd(int newSize)(Code) | | |
shiftGap | protected void shiftGap(int newGapStart)(Code) | | |
shiftGapEndUp | protected void shiftGapEndUp(int newGapEnd)(Code) | | |
shiftGapStartDown | protected void shiftGapStartDown(int newGapStart)(Code) | | |
updateUndoPositions | protected void updateUndoPositions(Vector vector, int offset, int len)(Code) | | Restores offset of positions that fall into the range. It is used by
Undo/Redo implementation (DocumentEdit inner class).
The vector parameter is the vector returned by
getPositionsInRange method.
|
|
|