| java.lang.Object ti.swing.console.Row
Row | class Row implements java.io.Serializable(Code) | | Row is a utility class used by
ConsoleBuffer to managed data for a
particular row. A row can track whether it needs to be redrawn (see
Row.needsRedraw , and be edited using a similar interface as the console
itself (
Row.append ,
Row.zap ). The ConsoleBuffer is
responsible for handling line breaks, as the Row has no
knowledge of the max number of columns per row.
Nothing in this class is synchronized, because everything that could
potentially need synchronization should be called from the protection
of synchronized code in
ConsoleBuffer .
author: Rob Clark version: 0.0 |
Constructor Summary | |
| Row(int offset) Class Constructor. |
Method Summary | |
final void | append(char[] cbuf, int off, int len) Append characters to the end of this row. | final String | getData() Get the row data. | final int | getLength() Get the number of characters in this row. | final int | getOffset() The offset of the beginning of this row within the document stream. | final void | markClean() Mark this row as not needing repaint. | final void | markDirty() Mark this row as needing to be repainted. | final boolean | needsRedraw() Does this row need to be re-rendered? It is automatically marked dirty
if the contents are changed (see
Row.append and
Row.zap , or
can be marked dirty (for example if a new region is mapped over a part
of this row) by calling
Row.markDirty . | final void | setVisible(boolean visible) Indicate whether this row is visible, as in not hidden based on the
current clip-rect. | final void | zap(int num) Delete characters from end of this row. |
Row | Row(int offset)(Code) | | Class Constructor.
Parameters: offset - offset of this row within the console characterstream |
append | final void append(char[] cbuf, int off, int len)(Code) | | Append characters to the end of this row.
Parameters: cbuf - the character buffer Parameters: off - the offset into cbuf to first character to append Parameters: len - the number of characters to append |
getData | final String getData()(Code) | | Get the row data.
a string |
getLength | final int getLength()(Code) | | Get the number of characters in this row.
|
getOffset | final int getOffset()(Code) | | The offset of the beginning of this row within the document stream.
The offseti+1 (offset of row i+1) is offseti +
lengthi
the offset |
markClean | final void markClean()(Code) | | Mark this row as not needing repaint.
|
markDirty | final void markDirty()(Code) | | Mark this row as needing to be repainted.
|
needsRedraw | final boolean needsRedraw()(Code) | | Does this row need to be re-rendered? It is automatically marked dirty
if the contents are changed (see
Row.append and
Row.zap , or
can be marked dirty (for example if a new region is mapped over a part
of this row) by calling
Row.markDirty .
should this row be re-rendered? See Also: Row.append See Also: Row.zap See Also: Row.markDirty |
setVisible | final void setVisible(boolean visible)(Code) | | Indicate whether this row is visible, as in not hidden based on the
current clip-rect.
|
zap | final void zap(int num)(Code) | | Delete characters from end of this row.
Parameters: num - the number of characters to delete |
|
|