| java.lang.Object org.gjt.sp.jedit.textarea.RangeMap
RangeMap | class RangeMap (Code) | | The fold visibility map.
All lines from fvm[2*n] to fvm[2*n+1]-1 inclusive are visible.
All lines from position fvm[2*n+1] to fvm[2*n+2]-1 inclusive are
invisible.
Examples:
---------
All lines visible: { 0, buffer.getLineCount() }
Narrow from a to b: { a, b + 1 }
Collapsed fold from a to b: { 0, a + 1, b, buffer.getLineCount() }
Note: length is always even.
|
Method Summary | |
void | contentInserted(int startLine, int numLines) | int | count() | void | dump() | int | first() | void | hide(int start, int end) | int | last() | int | lookup(int index) | int | next(int line) | boolean | preContentRemoved(int startLine, int numLines) | int | prev(int line) | void | put(int start, int end, int[] put) Replaces from start to end-1 inclusive with
put . | void | put2(int starti, int endi, int start, int end) Merge previous and next entry if necessary. | void | reset(int lines) | int | search(int line) Returns the fold visibility map index for the given line. | void | show(int start, int end) |
contentInserted | void contentInserted(int startLine, int numLines)(Code) | | |
hide | void hide(int start, int end)(Code) | | |
lookup | int lookup(int index)(Code) | | |
preContentRemoved | boolean preContentRemoved(int startLine, int numLines)(Code) | | If the anchors should be reset. |
put | void put(int start, int end, int[] put)(Code) | | Replaces from start to end-1 inclusive with
put . Update fvmcount .
|
put2 | void put2(int starti, int endi, int start, int end)(Code) | | Merge previous and next entry if necessary.
|
reset | void reset(int lines)(Code) | | |
search | int search(int line)(Code) | | Returns the fold visibility map index for the given line.
|
show | void show(int start, int end)(Code) | | |
|
|