|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.grahamedgecombe.jterminal.AbstractTerminalModel
com.grahamedgecombe.jterminal.vt100.Vt100TerminalModel
public class Vt100TerminalModel
A VT100/ANSI-compatible terminal model.
| Constructor Summary | |
|---|---|
Vt100TerminalModel()
Creates the terminal model with the default number of columns and rows, and the default buffer size. |
|
Vt100TerminalModel(int columns,
int rows)
Creates the terminal model with the specified number of columns and rows. |
|
Vt100TerminalModel(int columns,
int rows,
int bufferSize)
Creates the terminal model with the specified number of columns and rows and the specified buffer size. |
|
| Method Summary | |
|---|---|
BellStrategy |
getBellStrategy()
Gets the bell strategy. |
int |
getBufferSize()
Gets the buffer size. |
TerminalCell |
getCell(int column,
int row)
Gets a cell. |
int |
getColumns()
Gets the number of columns. |
int |
getCursorColumn()
Gets the cursor column. |
int |
getCursorRow()
Gets the cursor row. |
java.awt.Color |
getDefaultBackgroundColor()
Gets the default background color. |
java.awt.Color |
getDefaultForegroundColor()
Gets the default foreground color. |
int |
getRows()
Gets the number of rows. |
void |
print(java.lang.String str)
Prints the specified string to the terminal at the cursor position, interpreting any escape sequences/special ASCII codes the model may support. |
void |
setBellStrategy(BellStrategy strategy)
Sets the bell strategy. |
void |
setCell(int column,
int row,
TerminalCell cell)
Sets a cell. |
void |
setCursorColumn(int column)
Sets the cursor column. |
void |
setCursorRow(int row)
Sets the cursor row. |
| Methods inherited from class com.grahamedgecombe.jterminal.AbstractTerminalModel |
|---|
clear, moveCursorBack, moveCursorDown, moveCursorForward, moveCursorUp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Vt100TerminalModel()
public Vt100TerminalModel(int columns,
int rows)
columns - The number of columns.rows - The number of rows.
java.lang.IllegalArgumentException - if the number of rows or columns is
negative.
public Vt100TerminalModel(int columns,
int rows,
int bufferSize)
columns - The number of columns.rows - The number of rows.bufferSize - The buffer size.
java.lang.IllegalArgumentException - if the number of rows or columns is
negative, or if the buffer size is less than the number of rows.| Method Detail |
|---|
public int getCursorRow()
TerminalModel
public void setCursorRow(int row)
TerminalModel
row - The cursor row.public int getCursorColumn()
TerminalModel
public void setCursorColumn(int column)
TerminalModel
column - The cursor column.
public TerminalCell getCell(int column,
int row)
TerminalModel
column - The column.row - The row.
public void setCell(int column,
int row,
TerminalCell cell)
TerminalModel
column - The column.row - The row.cell - The cell.public void print(java.lang.String str)
TerminalModel
str - The string to print.public int getColumns()
TerminalModel
public int getRows()
TerminalModel
public int getBufferSize()
TerminalModel
public BellStrategy getBellStrategy()
TerminalModel
public void setBellStrategy(BellStrategy strategy)
TerminalModel
strategy - The bell strategy.public java.awt.Color getDefaultBackgroundColor()
TerminalModel
public java.awt.Color getDefaultForegroundColor()
TerminalModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||