|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jcurzez.peer.NullScreenPeer
This class is needed because when the Jcurses's shutdown hook is
called, there may be other threads that are still using
Screen
. So these calls are routed to here, where they
are discarded.
Screen.peer
Field Summary | |
private int |
columns
Columns of the previous peer. |
private int |
lines
Lines of the previous peer. |
Constructor Summary | |
NullScreenPeer(int columns,
int lines)
Creates a new . |
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)
Does nothing. |
void |
printCell(int x,
int y,
Cell cell)
Does nothing. |
void |
setCursorVisibility(int v)
Changes the way cursor is displayed. |
void |
update()
Does nothing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final int columns
private final int lines
Constructor Detail |
public NullScreenPeer(int columns, int lines)
Method Detail |
public void gotoXY(int x, int y)
gotoXY
in interface ScreenPeer
jcurzez.peer.ScreenPeer
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)
printCell
in interface ScreenPeer
jcurzez.peer.ScreenPeer
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.Cell
public void update()
update
in interface ScreenPeer
jcurzez.peer.ScreenPeer
AbstractWindow.refresh()
public int getColumns()
ScreenPeer
80
, but it may be different if you use a xterm
,
a different screen mode, or frame buffering.
getColumns
in interface ScreenPeer
jcurzez.peer.ScreenPeer
public int getLines()
ScreenPeer
25
, but it may be different if you use a xterm
,
a different screen mode, or frame buffering.
getLines
in interface ScreenPeer
jcurzez.peer.ScreenPeer
public int getFirstX()
ScreenPeer
getFirstX
in interface ScreenPeer
jcurzez.peer.ScreenPeer
public int getFirstY()
ScreenPeer
getFirstY
in interface ScreenPeer
jcurzez.peer.ScreenPeer
public void setCursorVisibility(int v)
ScreenPeer
setCursorVisibility
in interface ScreenPeer
jcurzez.peer.ScreenPeer
v
- visibility of the cursor. One of
NORMAL
,
INVISIBLE
,
VERY_VISIBLE
.Cursor
public void beep()
ScreenPeer
beep
in interface ScreenPeer
public void end()
ScreenPeer
end
in interface ScreenPeer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |