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.

Constructor Index

 o JediCanvas(Applet, JediClnt)

Method Index

 o 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.
 o paint(Graphics)
 o refreshAll(Image)
 o remoteRefresh(byte[])
 o remoteUpdate(byte[], int, int)
 o update(Graphics)
 o updatePart(Image, int, int)

Constructors

 o JediCanvas
  public JediCanvas(Applet applet,
                    JediClnt clnt)

Methods

 o 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
 o paint
  public synchronized void paint(Graphics g)
Overrides:
paint in class Canvas
 o update
  public synchronized void update(Graphics g)
Overrides:
update in class Component
 o updatePart
  public synchronized void updatePart(Image overImage,
                                      int xpos,
                                      int ypos)
 o refreshAll
  public synchronized void refreshAll(Image newImage)
 o remoteUpdate
  public synchronized void remoteUpdate(byte bytes[],
                                        int xpos,
                                        int ypos)
 o remoteRefresh
  public synchronized void remoteRefresh(byte bytes[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index