public class Cursor
extends java.lang.Object
This class provides a set of methods and variables that correspond to the CURSOR of a CICS terminal.
Constructor and Description |
---|
Cursor(int width,
int height)
Construct a cursor for a screen of the supplied width and height and an
initial position of (1,1).
|
Cursor(int width,
int height,
int column,
int row)
Construct a cursor for a screen of the supplied width and height and a
supplied initial position.
|
Modifier and Type | Method and Description |
---|---|
void |
decrement()
Decrement the cursor position.
|
int |
getColumn()
Get the current cursor column position.
|
int |
getRow()
Get the current cursor row position.
|
void |
increment()
Increment the cursor position.
|
void |
increment(int extra)
Increment the cursor position by the supplied amount.
|
void |
incrementRow()
Increment the row of the cursor (by 1).
|
void |
setColumn(int newColumn)
Set the column of the cursor to the supplied value.
|
void |
setRow(int newRow)
Set the row of the cursor to the supplied value.
|
int |
toBinary()
Convert the
Cursor to a binary value. |
public Cursor(int width, int height)
width
- The width of the display.height
- The height of the display.public Cursor(int width, int height, int column, int row)
width
- The width of the display.height
- The height of the display.column
- The column where the cursor is.row
- The row where the cursor is.public void decrement()
public void increment()
public void increment(int extra)
extra
- the amount by which to move the cursor.public void incrementRow()
public void setColumn(int newColumn)
newColumn
- The new column of the cursor.public void setRow(int newRow)
newRow
- The new row of the cursor.public int getColumn()
public int getRow()
public int toBinary()
Cursor
to a binary value.