|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jcurzez.peer.win.PeerScreen
The win implementation of jcurzez. Almost all methods are native.
Field Summary | |
private static byte |
BLACK
|
private static byte |
BLUE
|
private static byte |
CYAN
|
private static byte |
GREEN
|
private static byte |
MAGENTA
|
private static byte |
RED
|
private static byte |
WHITE
|
private static byte |
YELLOW
|
Constructor Summary | |
PeerScreen()
|
Method Summary | |
private static void |
_beep()
|
private static int |
_begin()
|
private static void |
_end()
|
private static int |
_getColumns()
|
private static int |
_getFirstX()
|
private static int |
_getFirstY()
|
private static int |
_getLines()
|
private static void |
_gotoXY(int x,
int y)
|
private static void |
_printCell(int x,
int y,
int character,
short color,
byte attr)
|
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 byte BLACK
private static final byte BLUE
private static final byte GREEN
private static final byte CYAN
private static final byte RED
private static final byte YELLOW
private static final byte MAGENTA
private static final byte WHITE
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)
ScreenPeer
x
and
y
should be consistent.
This method is used by refresh
to move the cursor where it is supposed to be.
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()
private static void _printCell(int x, int y, int character, short color, byte attr)
public void printCell(int x, int y, Cell cell)
ScreenPeer
cell
on the physical screen at
specified position.
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
private static int _getColumns()
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
private static int _getLines()
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
private static int _getFirstX()
public int getFirstX()
ScreenPeer
getFirstX
in interface ScreenPeer
jcurzez.peer.ScreenPeer
private static int _getFirstY()
public int getFirstY()
ScreenPeer
getFirstY
in interface ScreenPeer
jcurzez.peer.ScreenPeer
private static void _update()
public void update()
ScreenPeer
ScreenPeer.gotoXY(int, int)
- to where it should be.
update
in interface ScreenPeer
jcurzez.peer.ScreenPeer
AbstractWindow.refresh()
private static void _setCursorVisibility(int v)
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
private static void _beep()
public void beep()
ScreenPeer
beep
in interface ScreenPeer
private 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 |