Class jedi.JediCanvas
All Packages Class Hierarchy This Package Previous Next Index
Class jedi.JediCanvas
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----jedi.JediCanvas
- public class JediCanvas
- extends Canvas
Responsible for updating the screen image.
-
JediCanvas(Applet, JediClnt)
-
-
keyDown(Event, int)
- bunch of ugly hacks here i don't understand:
1) add 96 to control key strikes to get to the actual
character involved.
-
paint(Graphics)
-
-
refreshAll(Image)
-
-
remoteRefresh(byte[])
-
-
remoteUpdate(byte[], int, int)
-
-
update(Graphics)
-
-
updatePart(Image, int, int)
-
JediCanvas
public JediCanvas(Applet applet,
JediClnt clnt)
keyDown
public boolean keyDown(Event event,
int key)
- bunch of ugly hacks here i don't understand:
1) add 96 to control key strikes to get to the actual
character involved. X wants this and i don't see
an interface for doing this anywhere.
2) the shift mask is defined to be zero in java. i've
redefined it to be 1, which doesn't seem to conflict
with anything else.
3) return key is "linefeed=10" in java. i'm translating
it to "return=13" for X.
4) delete key is "0x07f" in java, but is "0xffff" in X.
5) tab, return, escape, delete keys have their upper
bits switched from off to on when we go from java
to X.
6) i'm not going to bother with arrow keys and such.
they seem even more bizzare!
- Overrides:
- keyDown in class Component
paint
public synchronized void paint(Graphics g)
- Overrides:
- paint in class Canvas
update
public synchronized void update(Graphics g)
- Overrides:
- update in class Component
updatePart
public synchronized void updatePart(Image overImage,
int xpos,
int ypos)
refreshAll
public synchronized void refreshAll(Image newImage)
remoteUpdate
public synchronized void remoteUpdate(byte bytes[],
int xpos,
int ypos)
remoteRefresh
public synchronized void remoteRefresh(byte bytes[])
All Packages Class Hierarchy This Package Previous Next Index