All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----bmsi.fsp.PWinMgr
Summary |
public class PWinMgr extends java.lang.Object { // Fields 4 int cols; char[] mask; boolean[] onTop; PScreen ps; // Constructors 1 public PWinMgr(PScreen); // Methods 11 synchronized int addWin(PWin); synchronized PWin delWin(int); public Rectangle getScreenRect(); public PWin getWin(int); boolean isOnTop(int); synchronized void repaint(Rectangle); void reset(Rectangle); void set(int, int, int, int, int); synchronized void sync() throws IOException; void toBack(PWin); void toFront(PWin); }
Coordinate PWin windows for a terminal screen.
Fields |
· ps | Summary | Top |
PScreen ps
· onTop | Summary | Top |
boolean[] onTop
Track which windows can skip masking logic because they are not obscured by any other window.
· mask | Summary | Top |
char[] mask
Track which window owns each cell of the screen.
· cols | Summary | Top |
int cols
Constructors |
· PWinMgr | Summary | Top |
public PWinMgr(PScreen ps)
Create a PWin manager.
Parameter Description ps the physical screen the windows are displayed on
Methods |
· getScreenRect | Summary | Top |
public Rectangle getScreenRect()
· addWin | Summary | Top |
synchronized int addWin(PWin w)
Register a PWin with this manager.
Parameter Description w the PWin to register
- Returns:
- the win id
· getWin | Summary | Top |
public PWin getWin(int id)
· delWin | Summary | Top |
synchronized PWin delWin(int id)
Unregister a PWin from this manager.
Parameter Description id the win id of the PWin to unregister.
- Returns:
- the PWin removed
· reset | Summary | Top |
void reset(Rectangle r)
Recompute the ownership mask for the area covered by a PWin.
· repaint | Summary | Top |
synchronized void repaint(Rectangle r)
Redraw a section of the screen.
· sync | Summary | Top |
synchronized void sync() throws IOException
· set | Summary | Top |
void set(int x, int y, int w, int h, int id)
· isOnTop | Summary | Top |
boolean isOnTop(int id)
A window is onTop if it is not obscured by any other window. This is set to true when PWin.set() is called. It is set to false when a cell owned by a window is overwritten by another window's set().
· toFront | Summary | Top |
void toFront(PWin w)
· toBack | Summary | Top |
void toBack(PWin w)
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7