|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface consists in few methods that a peer class must implement to
provide jcurzez a Screen.
The class relies on this
interface, as Screen eventually does.
Area
Screen.peer| Method Summary | |
void |
beep()
Emits an audio beep. |
void |
end()
Performs all shutdown tasks before the screen is destroyed. |
int |
getColumns()
Retrieves the number of columns the screen has. |
int |
getFirstX()
Retrieves the x coordinate by the time the screen object is created. |
int |
getFirstY()
Retrieves the y coordinate by the time the screen object is created. |
int |
getLines()
Retrieves the number of lines the screen has. |
void |
gotoXY(int x,
int y)
Moves the cursor on the physical screen at specified position. |
void |
printCell(int x,
int y,
Cell cell)
Prints the cell cell on the physical screen at
specified position. |
void |
setCursorVisibility(int v)
Changes the way cursor is displayed. |
void |
update()
Updates the physical screen. |
| Method Detail |
public void gotoXY(int x,
int y)
x and
y should be consistent.
This method is used by refresh
to move the cursor where it is supposed to be.
x - x coordinate where to send the cursor. This is an absolute
coordinate.y - y coordinate where to send the cursor. This is an absolute
coordinate.AbstractWindow.refresh()
public void printCell(int x,
int y,
Cell cell)
cell on the physical screen at
specified position.
x - x coordinate where to send the cursor. This is an absolute
coordinate.y - y coordinate where to send the cursor. This is an absolute
coordinate.cell - the cell to print at this position.Cellpublic void update()
gotoXY(int, int) - to where it should be.
AbstractWindow.refresh()public int getColumns()
80, but it may be different if you use a xterm,
a different screen mode, or frame buffering.
public int getLines()
25, but it may be different if you use a xterm,
a different screen mode, or frame buffering.
public int getFirstX()
public int getFirstY()
public void setCursorVisibility(int v)
v - visibility of the cursor. One of
NORMAL,
INVISIBLE,
VERY_VISIBLE.Cursorpublic void beep()
public void end()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||