|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--jcurzez.peer.curses.PeerScreen
The curses implementation of Jcurzez. Almost all methods are native.
| Field Summary | |
private boolean |
hasColors
|
private static int |
INITSCR_ERR
|
private static int |
INITSCR_OK
|
private static int |
NO_COLORS
|
private static int |
START_COLOR_ERR
|
| Constructor Summary | |
PeerScreen()
|
|
| Method Summary | |
private static void |
_beep()
|
private static int |
_begin()
|
private static void |
_end()
|
private static int |
_getColumns()
|
private static int |
_getLines()
|
private static void |
_gotoXY(int x,
int y)
|
private static void |
_printCell(int x,
int y,
short fore,
short back,
byte attr,
int c)
|
private static void |
_setCursorVisibility(int v)
|
private static void |
_update()
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final int START_COLOR_ERR
private static final int INITSCR_ERR
private static final int INITSCR_OK
private static final int NO_COLORS
private final boolean hasColors
| Constructor Detail |
public PeerScreen()
| Method Detail |
private static int _begin()
private static void _gotoXY(int x,
int y)
public void gotoXY(int x,
int y)
ScreenPeerx and
y should be consistent.
This method is used by refresh
to move the cursor where it is supposed to be.
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()
private static void _printCell(int x,
int y,
short fore,
short back,
byte attr,
int c)
public void printCell(int x,
int y,
Cell cell)
ScreenPeercell on the physical screen at
specified position.
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.Cellprivate static int _getColumns()
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.ScreenPeerprivate static int _getLines()
public 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.ScreenPeerprivate static void _update()
public void update()
ScreenPeerScreenPeer.gotoXY(int, int) - to where it should be.
update in interface ScreenPeerjcurzez.peer.ScreenPeerAbstractWindow.refresh()private static void _setCursorVisibility(int v)
public void setCursorVisibility(int v)
ScreenPeer
setCursorVisibility in interface ScreenPeerjcurzez.peer.ScreenPeerv - visibility of the cursor. One of
NORMAL,
INVISIBLE,
VERY_VISIBLE.Cursorprivate static void _beep()
public void beep()
ScreenPeer
beep in interface ScreenPeerprivate static void _end()
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 | ||||||||||