|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jinke.gui.Window
public class Window
| Field Summary | |
|---|---|
private DBusListener |
dbusListener
|
private ErrorListener |
errorListener
|
protected Graphics |
gc
Graphics context - created in constructor |
java.lang.Thread |
idle
Time consuming task to run in bg |
private boolean |
invalidate
|
private KeyListener |
keyListener
|
private MouseListener |
mouseListener
|
private TimerListener |
timerListener
|
private int |
windowID
|
private WindowListener |
windowListener
|
| Constructor Summary | |
|---|---|
Window(int i,
int j,
int k,
int l)
Constructor, inits Listeners(empty), gets windowID handler, inits graphic context |
|
| Method Summary | |
|---|---|
void |
addDBusListener(DBusListener dbuslistener)
|
void |
addErrorListener(ErrorListener errorlistener)
|
private void |
addEventMask(int i,
int j)
|
void |
addKeyListener(KeyListener keylistener)
Adds KeyListener |
void |
addMouseListener(MouseListener mouselistener)
|
void |
addTimerListener(TimerListener timerlistener)
|
void |
addWindowListener(WindowListener windowlistener)
sets windows listener |
void |
beginUIThread()
Starts event queque |
private void |
blockFlush_v30(int i,
int j,
int k,
int l,
int i1)
|
void |
blockFlush(int i,
int j,
int k,
int l)
Repaints window's fragment - coords window relative |
void |
closeWindow()
Releases res, exits wit err 0 |
private boolean |
createGUI()
|
private int |
createWindow(int i,
int j,
int k,
int l)
|
private int |
createWindow(Rectangle rectangle)
|
private void |
destroyGUI()
|
private void |
destroyWindow()
|
private void |
fastBlockFlush_v30(int i,
int j,
int k,
int l,
int i1)
|
void |
fastBlockFlush(int i,
int j,
int k,
int l)
Very fast flush without 'turnpage effect', w-o clearing, however may result in artifacts at EInkScreen after few redraws |
protected void |
finalize()
releases res |
private void |
flush_v30(int i)
|
void |
flush()
request nano-X to repaint *whole* window |
DBusListener |
getDBusListener()
|
ErrorListener |
getErrorListener()
|
Graphics |
getGraphics()
Returns graphic context |
KeyListener |
getKeyListener()
|
MouseListener |
getMouseListener()
|
TimerListener |
getTimerListener()
|
int |
getWindowID()
Returns winID |
WindowListener |
getWindowListener()
|
void |
invokerLater(java.lang.Runnable runnable)
Idle thread |
boolean |
isVisible()
Checks if visible |
private boolean |
isVisible(int i)
|
void |
removeDBusListener()
|
void |
removeErrorListener()
|
private void |
removeEventMask(int i,
int j)
|
void |
removeKeyListener(KeyListener keylistener)
Removes kye listener |
void |
removeMouseListener()
|
void |
removeTimerListener()
|
void |
removeWindowListener()
|
void |
setLocation(int i,
int j)
Sets new location |
private void |
setLocation(int i,
int j,
int k)
|
void |
setSize(int i,
int j)
Sets size |
private void |
setSize(int i,
int j,
int k)
|
void |
setVisible(boolean flag)
Makes visible |
private void |
setVisible(int i,
boolean flag)
|
void |
sync()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean invalidate
private int windowID
protected Graphics gc
private ErrorListener errorListener
private WindowListener windowListener
private KeyListener keyListener
private TimerListener timerListener
private MouseListener mouseListener
private DBusListener dbusListener
public java.lang.Thread idle
invokerLater(java.lang.Runnable)| Constructor Detail |
|---|
public Window(int i,
int j,
int k,
int l)
i - x locationj - y locationk - wl - h| Method Detail |
|---|
private void flush_v30(int i)
private void blockFlush_v30(int i,
int j,
int k,
int l,
int i1)
private void fastBlockFlush_v30(int i,
int j,
int k,
int l,
int i1)
public void sync()
private boolean createGUI()
private int createWindow(int i,
int j,
int k,
int l)
private void setVisible(int i,
boolean flag)
private void setSize(int i,
int j,
int k)
private void setLocation(int i,
int j,
int k)
private boolean isVisible(int i)
private void addEventMask(int i,
int j)
private void removeEventMask(int i,
int j)
private void destroyGUI()
private void destroyWindow()
private int createWindow(Rectangle rectangle)
public void closeWindow()
public int getWindowID()
public Graphics getGraphics()
public void setVisible(boolean flag)
flag - true = visible
public void setSize(int i,
int j)
i - wj - h
public void setLocation(int i,
int j)
i - xj - ypublic boolean isVisible()
public void beginUIThread()
public void addKeyListener(KeyListener keylistener)
keylistener - KeyListener,
KeyAdapterpublic void removeKeyListener(KeyListener keylistener)
keylistener - public KeyListener getKeyListener()
public void addWindowListener(WindowListener windowlistener)
windowlistener - WindowListenerpublic void removeWindowListener()
public WindowListener getWindowListener()
public void addErrorListener(ErrorListener errorlistener)
errorlistener - public void removeErrorListener()
public ErrorListener getErrorListener()
public void addTimerListener(TimerListener timerlistener)
timerlistener - public void removeTimerListener()
public TimerListener getTimerListener()
public void addMouseListener(MouseListener mouselistener)
mouselistener - public void removeMouseListener()
public MouseListener getMouseListener()
public void addDBusListener(DBusListener dbuslistener)
dbuslistener - public void removeDBusListener()
public DBusListener getDBusListener()
public void invokerLater(java.lang.Runnable runnable)
runnable - timeconsuming task to be executed in backgroundprotected void finalize()
public void flush()
blockFlush(int, int, int, int)
public void blockFlush(int i,
int j,
int k,
int l)
i - xj - yk - wl - h
public void fastBlockFlush(int i,
int j,
int k,
int l)
i - xj - yk - wl - h
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||