waba.applet
Class WinCanvas

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--waba.applet.WinCanvas

public class WinCanvas
extends java.awt.Canvas

A JDK canvas used to translate the events to SuperWaba equivalents.

See Also:
Serialized Form

Field Summary
protected static waba.applet.SWEventThread _eventThread
           
static WinCanvas currentCanvas
           
 int currentKeysState
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
WinCanvas(MainWindow win)
           
 
Method Summary
static void createEventThread(MainWindow win)
           
static boolean eventIsAvailable()
           
 boolean handleEvent(java.awt.Event event)
           
static void invokeInEventThread(boolean wait, java.lang.Runnable runnable)
           
 boolean isFocusTraversable()
           
static int keyValue(int key, int mod)
           
 void paint(java.awt.Graphics g)
           
static void pumpEvents()
           
 void transferFocus()
           
 void update(java.awt.Graphics g)
           
 
Methods inherited from class java.awt.Canvas
addNotify
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

currentCanvas

public static WinCanvas currentCanvas

_eventThread

protected static waba.applet.SWEventThread _eventThread

currentKeysState

public int currentKeysState
Constructor Detail

WinCanvas

public WinCanvas(MainWindow win)
Method Detail

isFocusTraversable

public boolean isFocusTraversable()
Overrides:
isFocusTraversable in class java.awt.Component

transferFocus

public void transferFocus()
Overrides:
transferFocus in class java.awt.Component

handleEvent

public boolean handleEvent(java.awt.Event event)
Overrides:
handleEvent in class java.awt.Component

keyValue

public static int keyValue(int key,
                           int mod)

paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class java.awt.Canvas

update

public void update(java.awt.Graphics g)
Overrides:
update in class java.awt.Component

createEventThread

public static void createEventThread(MainWindow win)

eventIsAvailable

public static boolean eventIsAvailable()

pumpEvents

public static void pumpEvents()

invokeInEventThread

public static void invokeInEventThread(boolean wait,
                                       java.lang.Runnable runnable)