public class ScreenData
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
cursorX
Required cursor X coordinate
|
private int |
cursorY
Required cursor Y coordinate
|
private Cell[][] |
data
Screen image.
|
| Constructor and Description |
|---|
ScreenData(Cell[][] data,
int cursorX,
int cursorY) |
| Modifier and Type | Method and Description |
|---|---|
Cell[][] |
asArray()
Get screen data as a multi-dimensional array of cells.
|
Cell |
getCell(int row,
int col)
Get cell at specified row and column.
|
int |
getCursorX()
Get cursor X.
|
int |
getCursorY()
Get cursor Y.
|
java.util.List<Cell> |
list()
Get screen data as list of cells.
|
private final Cell[][] data
private final int cursorX
private final int cursorY
public ScreenData(Cell[][] data, int cursorX, int cursorY)
data - Screen content data.cursorX - Desired cursor X.cursorY - Desired cursor Y.public Cell getCell(int row, int col)
row - Row.col - Column.public int getCursorX()
public int getCursorY()
public Cell[][] asArray()
public java.util.List<Cell> list()