javax.microedition.lcdui.game
Class GameCanvas
java.lang.Object
javax.microedition.lcdui.Displayable
javax.microedition.lcdui.Canvas
javax.microedition.lcdui.game.GameCanvas
public abstract class GameCanvas
- extends Canvas
- Author:
- Andres Navarro, radoshi
| Fields inherited from class javax.microedition.lcdui.Canvas |
DOWN, FIRE, GAME_A, GAME_B, GAME_C, GAME_D, KEY_NUM0, KEY_NUM1, KEY_NUM2, KEY_NUM3, KEY_NUM4, KEY_NUM5, KEY_NUM6, KEY_NUM7, KEY_NUM8, KEY_NUM9, KEY_POUND, KEY_STAR, LEFT, RIGHT, UP |
|
Constructor Summary |
protected |
GameCanvas(boolean suppressKeyEvents)
Creates a new instance of GameCanvas |
| Methods inherited from class javax.microedition.lcdui.Canvas |
getGameAction, getKeyCode, getKeyName, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, hideNotify, isDoubleBuffered, keyPressed, keyReleased, keyRepeated, pointerDragged, pointerPressed, pointerReleased, repaint, repaint, serviceRepaints, setFullScreenMode, showNotify, sizeChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UP_PRESSED
public static final int UP_PRESSED
- See Also:
- Constant Field Values
DOWN_PRESSED
public static final int DOWN_PRESSED
- See Also:
- Constant Field Values
LEFT_PRESSED
public static final int LEFT_PRESSED
- See Also:
- Constant Field Values
RIGHT_PRESSED
public static final int RIGHT_PRESSED
- See Also:
- Constant Field Values
FIRE_PRESSED
public static final int FIRE_PRESSED
- See Also:
- Constant Field Values
GAME_A_PRESSED
public static final int GAME_A_PRESSED
- See Also:
- Constant Field Values
GAME_B_PRESSED
public static final int GAME_B_PRESSED
- See Also:
- Constant Field Values
GAME_C_PRESSED
public static final int GAME_C_PRESSED
- See Also:
- Constant Field Values
GAME_D_PRESSED
public static final int GAME_D_PRESSED
- See Also:
- Constant Field Values
GameCanvas
protected GameCanvas(boolean suppressKeyEvents)
- Creates a new instance of GameCanvas
getGraphics
protected Graphics getGraphics()
paint
public void paint(Graphics g)
- Specified by:
paint in class Canvas
flushGraphics
public void flushGraphics(int x,
int y,
int width,
int height)
flushGraphics
public void flushGraphics()
getKeyStates
public int getKeyStates()
Copyright © 2001-2010 MicroEmulator Team. All Rights Reserved.