Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

pkgView.ScreenKit Class Reference

Collaboration diagram for pkgView.ScreenKit:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 20 of file ScreenKit.java.

Public Member Functions

native void ttyMvAddStr (int row, int col, String str, int len, int attrib, int pairNum)
native void ttyMove (int row, int col)
native void ttyDrawBox (int y, int x, int rows, int cols, int pair)
native void ttyDrawHline (int y, int x, int ch, int len, int pair)
native void ttyDrawVline (int y, int x, int ch, int len, int pair)
native void ttyInitPair (int pairNum, int fg, int bg)
native void ttyEndWin ()
native void ttySaveScreen ()
native void ttyShellScreen (String str)
 shell screen
native void ttyRestoreScreen ()
native void ttyClear ()
native void ttyEraseRow (int row, int col, int len, int attrib, int pairNum)
native void ttyBeep ()
native void ttyRefresh ()
native int ttyGetKey (int timeout)
 x

Static Public Member Functions

static ScreenKit getSingleton ()
static native boolean initScreen ()

Static Public Attributes

static final int NC_BLACK = 0
 x
static final int NC_RED = 1
 x
static final int NC_GREEN = 2
 x
static final int NC_YELLOW = 3
 x
static final int NC_BLUE = 4
 x
static final int NC_MAGENTA = 5
 x
static final int NC_CYAN = 6
 x
static final int NC_WHITE = 7
 x
static final int PAIR_BLACK_RED = 1
 x
static final int PAIR_BLACK_GREEN = 2
 x
static final int PAIR_BLACK_YELLOW = 3
 x
static final int PAIR_BLACK_BLUE = 4
 x
static final int PAIR_BLACK_MAGENTA = 5
 x
static final int PAIR_BLACK_CYAN = 6
 x
static final int PAIR_BLACK_WHITE = 7
 x
static final int PAIR_WHITE_BLUE = 8
 x
static final int PAIR_WHITE_BLACK = 9
 x
static final int PAIR_YELLOW_BLUE = 10
 x
static final int PAIRS_MAX = 10
 x
static int ncColorPairs = 0
 x
static final int COLOR_BOX = PAIR_WHITE_BLUE
 x
static final int COLOR_TITLE = PAIR_YELLOW_BLUE
 x
static final int SK_NORMAL = 0
 x
static final int SK_STANDOUT = 1
 x
static final int SK_UNDERLINE = 2
 x
static final int SK_REVERSE = 3
 x
static final int SK_BLINK = 4
 x
static final int SK_DIM = 5
 x
static final int SK_BOLD = 6
 x
static final int SK_PROTECT = 7
 x
static final int SK_INVIS = 8
 x
static final int SK_ALTCHARSET = 9
 x
static final int SK_CHARTEXT = 10
 x
static final int PANEL_TS = 1
 top side
static final int PANEL_LS = 0
 left side
static final int PANEL_RS = 79
 right side
static final int PANEL_BS = 20
 bottom side
static final int PANEL_HINT_ROW = 22
 x
static final int PANEL_SHELL_ROW = 23
 x
static final int FUNC_KEY_ROW = 24
 x


Member Function Documentation

static ScreenKit pkgView.ScreenKit.getSingleton  )  [static]
 

This method constructs the ScreenKit object and ensures there is only one instance. The methods herein call ncurses routines via CNI. They are not intended to be extended or overridden.

Definition at line 48 of file ScreenKit.java.

Referenced by pkgMcj.Cmd.Cmd(), and pkgMcj.Mcj.Mcj().

native void pkgView.ScreenKit.ttyMvAddStr int  row,
int  col,
String  str,
int  len,
int  attrib,
int  pairNum
 

ncurses mvaddstr()

Referenced by pkgView.TextItem.redraw(), and pkgMcj.FunctionBar.redraw().

native void pkgView.ScreenKit.ttyMove int  row,
int  col
 

ncurses move()

native void pkgView.ScreenKit.ttyDrawBox int  y,
int  x,
int  rows,
int  cols,
int  pair
 

use a set of ncurses functions to draw a box

Referenced by pkgMcj.PanelGrid.redraw().

native void pkgView.ScreenKit.ttyDrawHline int  y,
int  x,
int  ch,
int  len,
int  pair
 

use a set of ncurses functions to draw a horizontal line

Referenced by pkgMcj.PanelGrid.redraw(), and pkgMcj.MenuBar.redraw().

native void pkgView.ScreenKit.ttyDrawVline int  y,
int  x,
int  ch,
int  len,
int  pair
 

use a set of ncurses functions to draw a vertical line

Referenced by pkgMcj.PanelGrid.redraw().

native void pkgView.ScreenKit.ttyInitPair int  pairNum,
int  fg,
int  bg
 

ncurses init_pair() .. This should called by the constructor to set up every color pair expected to be in use.

native void pkgView.ScreenKit.ttyEndWin  ) 
 

ncurses endwin()

Referenced by pkgMcj.Mcj.Mcj().

native void pkgView.ScreenKit.ttySaveScreen  ) 
 

save ncurses

native void pkgView.ScreenKit.ttyRestoreScreen  ) 
 

restore ncurses

native void pkgView.ScreenKit.ttyClear  ) 
 

ncurses clear

native void pkgView.ScreenKit.ttyEraseRow int  row,
int  col,
int  len,
int  attrib,
int  pairNum
 

ncurses mvaddch(row,col,' ');

native void pkgView.ScreenKit.ttyBeep  ) 
 

ncurses beep()

native void pkgView.ScreenKit.ttyRefresh  ) 
 

ncurses refresh()

Referenced by pkgMcj.Mcj.errorMsg(), pkgMcj.Mcj.Mcj(), and pkgMcj.MenuBar.redraw().

static native boolean pkgView.ScreenKit.initScreen  )  [static]
 

This method is intended to be called by the constructor to init ncurses.


The documentation for this class was generated from the following file:
SourceForge.net Logo