|
|||||||||||
| 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 ScreenPeerjcurzez.peer.ScreenPeerx - 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 ScreenPeerjcurzez.peer.ScreenPeerx - 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()
update in interface ScreenPeerjcurzez.peer.ScreenPeerAbstractWindow.refresh()public int getColumns()
ScreenPeer80, but it may be different if you use a xterm,
a different screen mode, or frame buffering.
getColumns in interface ScreenPeerjcurzez.peer.ScreenPeerpublic int getLines()
ScreenPeer25, but it may be different if you use a xterm,
a different screen mode, or frame buffering.
getLines in interface ScreenPeerjcurzez.peer.ScreenPeerpublic int getFirstX()
ScreenPeer
getFirstX in interface ScreenPeerjcurzez.peer.ScreenPeerpublic int getFirstY()
ScreenPeer
getFirstY in interface ScreenPeerjcurzez.peer.ScreenPeerpublic void setCursorVisibility(int v)
ScreenPeer
setCursorVisibility in interface ScreenPeerjcurzez.peer.ScreenPeerv - visibility of the cursor. One of
NORMAL,
INVISIBLE,
VERY_VISIBLE.Cursorpublic void beep()
ScreenPeer
beep in interface ScreenPeerpublic 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 | ||||||||||