com.mindbright.terminal.tandem6530
public class Screen6530 extends java.lang.Object implements AsciiCodes
Modifier and Type | Field and Description |
---|---|
protected VideoAttributeMap |
attribMap |
protected boolean[] |
autowraps |
protected int |
bufferCol |
protected int |
bufferRow |
protected int |
cols |
protected int |
curCol |
protected int |
curRow |
protected static boolean |
DEBUG |
protected char |
defaultChar |
protected char[] |
defaultChars |
protected DisplayView |
display |
protected boolean |
hasSelection |
protected boolean |
insertMode |
static int |
MAX_COLS |
static int |
MAX_ROWS |
static int |
MAX_SAVED_LINES |
static int |
MIN_COLS |
static int |
MIN_ROWS |
protected int |
rows |
protected int |
saveLines |
protected char[][] |
screen |
protected int |
selectBottomCol |
protected int |
selectBottomRow |
protected int |
selectClickRow |
protected boolean |
selectClickState |
protected int |
selectTopCol |
protected int |
selectTopRow |
protected static char[] |
spacerow |
protected boolean[] |
tabStops |
protected int |
visTop |
protected boolean |
wrapAroundLastLine |
protected static int[] |
zerorow |
Constructor and Description |
---|
Screen6530(int rows,
int cols,
char defaultChar,
boolean wrapAroundLastLine) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
addSpaces(int start,
int end) |
void |
bufferSetPos(int v,
int h) |
void |
bufferWrite(char c) |
protected void |
clear(int row,
int startCol,
int endCol) |
void |
clear(int startRow,
int startCol,
int endRow,
int endCol) |
void |
clearAllTabs() |
void |
clearBelow() |
void |
clearBelow(boolean atCursor) |
void |
clearRight() |
void |
clearRight(boolean atCursor) |
void |
clearSaveLines() |
void |
clearScreen() |
void |
clearTab(boolean atCursor) |
void |
cursorBackward(int n) |
void |
cursorDown(int n) |
void |
cursorForward(int n) |
void |
cursorHome() |
void |
cursorHomeDown() |
void |
cursorSetPos(int v,
int h) |
void |
cursorSetPos(int v,
int h,
boolean relative) |
void |
cursorToLastCharOnRow() |
protected void |
cursorToLastCharOnRow(int row,
int col,
boolean first) |
void |
cursorToLastCharOnScreen() |
void |
cursorUp(int n) |
void |
cursorWrite(char c) |
void |
cursorWrite(char c,
boolean insert,
boolean attribChar) |
void |
deleteChars(int n) |
void |
deleteChars(int n,
boolean atCursor) |
void |
deleteLines(int n) |
void |
deleteLines(int n,
boolean atCursor) |
void |
doBackTabs(int n) |
void |
doBS() |
void |
doClickSelect(int row,
int col,
java.lang.String selectDelims) |
void |
doCR() |
void |
doHTab() |
void |
doLF() |
protected boolean |
doMatch(java.lang.String findStr,
char firstChar,
char[] chars,
int idx,
boolean caseSens,
int len) |
int[] |
getAttribsAt(int visTop,
int row) |
Screen6530Buffer |
getBuffer() |
char[] |
getCharsAt(int visTop,
int row) |
int |
getCols() |
protected java.lang.String |
getContents(int startRow,
int startCol,
int endRow,
int endCol,
java.lang.String eol) |
int |
getCurCol() |
int |
getCurRow() |
int |
getCursorCol() |
int |
getCursorH() |
int |
getCursorRow() |
int |
getCursorV() |
int |
getLastRow() |
int |
getRows() |
int |
getSaveLines() |
int |
getScreenTop() |
int |
getSelectBottomCol() |
int |
getSelectBottomRow() |
java.lang.String |
getSelection(java.lang.String eol) |
int |
getSelectTopCol() |
int |
getSelectTopRow() |
java.lang.String |
getStatus() |
int |
getTotalLines() |
int |
getVisTop() |
void |
insertChars(int n) |
void |
insertChars(int n,
boolean atCursor) |
void |
insertLines(int n) |
void |
insertLines(int n,
boolean atCursor) |
protected boolean |
isIntersectingSelect(int topRow,
int topCol,
int bottomRow,
int bottomCol) |
protected char[] |
makeCharLine() |
protected int |
nextPrintedChar(int row,
int col) |
protected int |
prevPrintedChar(int row,
int col) |
java.lang.String |
read(int startRow,
int startCol,
int endRow,
int endCol) |
protected void |
readLine(java.lang.StringBuilder buf,
int row,
int startCol,
int endCol) |
java.lang.String |
readWhole() |
void |
reset() |
void |
resetClickSelect() |
void |
resetSelection() |
void |
resetTabs() |
void |
resizeBuffers(int rows,
int cols) |
void |
scrollDown(int n) |
protected void |
scrollSelection(int n) |
void |
scrollUp(int n) |
SearchContext |
search(SearchContext lastContext,
java.lang.String key,
boolean reverse,
boolean caseSens) |
void |
selectAll() |
void |
setAttribute(int attr) |
void |
setBuffer(Screen6530Buffer buf) |
void |
setDefaultAttribute(int attr) |
void |
setDisplay(DisplayView display) |
void |
setInsertMode(boolean set) |
boolean |
setSaveLines(int n) |
void |
setSelection(int anchorRow,
int anchorCol,
int endRow,
int endCol) |
void |
setTab(boolean atCursor) |
void |
setVisTop(int row) |
void |
setVisTopDelta(int delta) |
java.lang.String |
spaceToNextTabStop() |
protected void |
updateCursorPosition() |
protected void |
updateDirtyArea(int top,
int left,
int bottom,
int right) |
protected static final boolean DEBUG
public static final int MIN_ROWS
public static final int MIN_COLS
public static final int MAX_COLS
public static final int MAX_ROWS
public static final int MAX_SAVED_LINES
protected int rows
protected int cols
protected int curRow
protected int curCol
protected int bufferRow
protected int bufferCol
protected int selectTopRow
protected int selectTopCol
protected int selectBottomRow
protected int selectBottomCol
protected boolean hasSelection
protected int selectClickRow
protected boolean selectClickState
protected boolean insertMode
protected boolean wrapAroundLastLine
protected char[][] screen
protected boolean[] autowraps
protected VideoAttributeMap attribMap
protected char defaultChar
protected char[] defaultChars
protected int saveLines
protected int visTop
protected static final char[] spacerow
protected static final int[] zerorow
protected boolean[] tabStops
protected DisplayView display
public Screen6530(int rows, int cols, char defaultChar, boolean wrapAroundLastLine)
public void setDisplay(DisplayView display)
protected void updateDirtyArea(int top, int left, int bottom, int right)
protected void updateCursorPosition()
public int getSaveLines()
public boolean setSaveLines(int n)
public void clearSaveLines()
protected char[] makeCharLine()
public void resizeBuffers(int rows, int cols)
public void cursorWrite(char c)
public void cursorWrite(char c, boolean insert, boolean attribChar)
public void bufferWrite(char c)
public int getCursorRow()
public int getCursorCol()
public int getScreenTop()
public int getTotalLines()
public char[] getCharsAt(int visTop, int row)
public int[] getAttribsAt(int visTop, int row)
public void setInsertMode(boolean set)
public int getVisTop()
public int getCurRow()
public int getCurCol()
public int getSelectTopRow()
public int getSelectTopCol()
public int getSelectBottomRow()
public int getSelectBottomCol()
public int getRows()
public int getCols()
public void doBS()
public void doBackTabs(int n)
public void doCR()
public void doLF()
public int getCursorV()
public int getCursorH()
public void cursorSetPos(int v, int h, boolean relative)
public void cursorSetPos(int v, int h)
public void bufferSetPos(int v, int h)
public void cursorHome()
public void cursorHomeDown()
public void cursorToLastCharOnScreen()
public void cursorToLastCharOnRow()
protected void cursorToLastCharOnRow(int row, int col, boolean first)
public void cursorUp(int n)
public void cursorDown(int n)
public void cursorForward(int n)
public void cursorBackward(int n)
public void scrollUp(int n)
public void scrollDown(int n)
public void clearBelow()
public void clearBelow(boolean atCursor)
protected void clear(int row, int startCol, int endCol)
public void clear(int startRow, int startCol, int endRow, int endCol)
public void clearScreen()
public void clearRight()
public void clearRight(boolean atCursor)
public void insertChars(int n)
public void insertChars(int n, boolean atCursor)
public void deleteChars(int n)
public void deleteChars(int n, boolean atCursor)
public void insertLines(int n)
public void insertLines(int n, boolean atCursor)
public void deleteLines(int n)
public void deleteLines(int n, boolean atCursor)
public void setAttribute(int attr)
public void setDefaultAttribute(int attr)
protected int nextPrintedChar(int row, int col)
protected int prevPrintedChar(int row, int col)
protected java.lang.String addSpaces(int start, int end)
protected boolean isIntersectingSelect(int topRow, int topCol, int bottomRow, int bottomCol)
public void resetSelection()
public void selectAll()
protected void scrollSelection(int n)
public void setSelection(int anchorRow, int anchorCol, int endRow, int endCol)
public java.lang.String getSelection(java.lang.String eol)
protected java.lang.String getContents(int startRow, int startCol, int endRow, int endCol, java.lang.String eol)
public void resetClickSelect()
public void doClickSelect(int row, int col, java.lang.String selectDelims)
public SearchContext search(SearchContext lastContext, java.lang.String key, boolean reverse, boolean caseSens)
protected boolean doMatch(java.lang.String findStr, char firstChar, char[] chars, int idx, boolean caseSens, int len)
public java.lang.String getStatus()
public int getLastRow()
public void setVisTop(int row)
public void setVisTopDelta(int delta)
public java.lang.String spaceToNextTabStop()
public void doHTab()
public void setTab(boolean atCursor)
public void clearTab(boolean atCursor)
public void clearAllTabs()
public void resetTabs()
public void reset()
public Screen6530Buffer getBuffer()
public void setBuffer(Screen6530Buffer buf)
public java.lang.String readWhole()
public java.lang.String read(int startRow, int startCol, int endRow, int endCol)
protected void readLine(java.lang.StringBuilder buf, int row, int startCol, int endCol)