| java.lang.Object org.netbeans.lib.terminalemulator.Buffer
Buffer | class Buffer (Code) | | The Buffer used by Term is _not_ related to javax.swing.text.Document.
The Swing Document is Element based while terms is Line based.
The Swing Document uses offsets for coordinates, while term uses cartesian
BCoords.
|
Inner Class :static class OurVector extends Vector | |
Field Summary | |
public int | nlines |
Constructor Summary | |
public | Buffer(int visible_cols) |
Method Summary | |
public Line | addLineAt(int row) | public BCoord | advance(BCoord c) | public Line | appendLine() | public BCoord | backup(BCoord c) Back up the coordinate by one character and return new BCoord
Travels back over line boundaries
Returns null if 'c' is the first character of the buffer. | Line | bottom() | public BExtent | find_word(WordDelineator word_delineator, BCoord coord) | Line | lineAt(int brow) | public Line | moveLineFromTo(int from, int to) | public void | noteColumn(int col) | public void | printStats() | public void | removeLineAt(int row) | public int | removeLinesAt(int row, int n) Remove 'n' lines starting at 'row'. | void | reverseVisitLines(BCoord begin, BCoord end, boolean newlines, LineVisitor visitor) | public void | setVisibleCols(int visible_cols) | public int | totalCols() | public int | visibleCols() | void | visitLines(BCoord begin, BCoord end, boolean newlines, LineVisitor visitor) Visit the physical lines from 'begin', through 'end'. |
Buffer | public Buffer(int visible_cols)(Code) | | |
backup | public BCoord backup(BCoord c)(Code) | | Back up the coordinate by one character and return new BCoord
Travels back over line boundaries
Returns null if 'c' is the first character of the buffer.
|
moveLineFromTo | public Line moveLineFromTo(int from, int to)(Code) | | |
noteColumn | public void noteColumn(int col)(Code) | | |
printStats | public void printStats()(Code) | | |
removeLineAt | public void removeLineAt(int row)(Code) | | |
removeLinesAt | public int removeLinesAt(int row, int n)(Code) | | Remove 'n' lines starting at 'row'.
Return the number of characters deleted as a result.
|
setVisibleCols | public void setVisibleCols(int visible_cols)(Code) | | |
totalCols | public int totalCols()(Code) | | |
visibleCols | public int visibleCols()(Code) | | |
visitLines | void visitLines(BCoord begin, BCoord end, boolean newlines, LineVisitor visitor)(Code) | | Visit the physical lines from 'begin', through 'end'.
If 'newlines' is set, the passed 'ecol' is set to the actual
number of columns in the view to signify that the newline is included.
This way of doing it helps with rendering of a whole-line selection.
Also Line knows about this and will tack on a "\n" when Line.text()
is asked for.
|
|
|