Package com.artelys.kalis
Class Console
- java.lang.Object
-
- com.artelys.kalis.Console
-
public class Console extends java.lang.Object
Utility class for text console managment
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
swigCMemOwn
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearScreen()
Clear the screenvoid
delete()
void
drawGrid(int x, int y, int col, int row, int w, int h)
void
fbox(int x, int y, int x1, int y1, boolean relative)
protected void
finalize()
long
getConsoleTextAttributes()
return the default console text attributesprotected static long
getCPtr(Console obj)
int
getX()
return current X cursor positionint
getY()
return current Y cursor positionvoid
gotoSavedPosition()
void
gotoxy(int x, int y)
position the cursor to (x,y) coordinatesvoid
restoreDefaultConsoleTextAttributes()
restore the default console text attributesvoid
savePosition()
void
setBackgroundColor(char col)
set the Background color of printed textvoid
setColor(long col)
set the color of the printed text (background and foreground)void
setForegroundColor(char col)
set the Foreground color of printed textvoid
split_h(int x, int x1, int y)
void
split_v(int y, int y1, int x)
-
-
-
Method Detail
-
getCPtr
protected static long getCPtr(Console obj)
-
finalize
protected void finalize()
- Overrides:
finalize
in classjava.lang.Object
-
delete
public void delete()
-
savePosition
public void savePosition()
-
getX
public int getX()
return current X cursor position
-
getY
public int getY()
return current Y cursor position
-
gotoxy
public void gotoxy(int x, int y)
position the cursor to (x,y) coordinates
-
gotoSavedPosition
public void gotoSavedPosition()
-
setColor
public void setColor(long col)
set the color of the printed text (background and foreground)
-
setBackgroundColor
public void setBackgroundColor(char col)
set the Background color of printed text
-
setForegroundColor
public void setForegroundColor(char col)
set the Foreground color of printed text
-
getConsoleTextAttributes
public long getConsoleTextAttributes()
return the default console text attributes
-
restoreDefaultConsoleTextAttributes
public void restoreDefaultConsoleTextAttributes()
restore the default console text attributes
-
clearScreen
public void clearScreen()
Clear the screen
-
fbox
public void fbox(int x, int y, int x1, int y1, boolean relative)
-
split_h
public void split_h(int x, int x1, int y)
-
split_v
public void split_v(int y, int y1, int x)
-
drawGrid
public void drawGrid(int x, int y, int col, int row, int w, int h)
-
-