javax.microedition.lcdui
Class Canvas
java.lang.Object
javax.microedition.lcdui.Displayable
javax.microedition.lcdui.Canvas
- Direct Known Subclasses:
- GameCanvas
public abstract class Canvas
- extends Displayable
Constructor Summary |
protected |
Canvas()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UP
public static final int UP
- See Also:
- Constant Field Values
DOWN
public static final int DOWN
- See Also:
- Constant Field Values
LEFT
public static final int LEFT
- See Also:
- Constant Field Values
RIGHT
public static final int RIGHT
- See Also:
- Constant Field Values
FIRE
public static final int FIRE
- See Also:
- Constant Field Values
GAME_A
public static final int GAME_A
- See Also:
- Constant Field Values
GAME_B
public static final int GAME_B
- See Also:
- Constant Field Values
GAME_C
public static final int GAME_C
- See Also:
- Constant Field Values
GAME_D
public static final int GAME_D
- See Also:
- Constant Field Values
KEY_NUM0
public static final int KEY_NUM0
- See Also:
- Constant Field Values
KEY_NUM1
public static final int KEY_NUM1
- See Also:
- Constant Field Values
KEY_NUM2
public static final int KEY_NUM2
- See Also:
- Constant Field Values
KEY_NUM3
public static final int KEY_NUM3
- See Also:
- Constant Field Values
KEY_NUM4
public static final int KEY_NUM4
- See Also:
- Constant Field Values
KEY_NUM5
public static final int KEY_NUM5
- See Also:
- Constant Field Values
KEY_NUM6
public static final int KEY_NUM6
- See Also:
- Constant Field Values
KEY_NUM7
public static final int KEY_NUM7
- See Also:
- Constant Field Values
KEY_NUM8
public static final int KEY_NUM8
- See Also:
- Constant Field Values
KEY_NUM9
public static final int KEY_NUM9
- See Also:
- Constant Field Values
KEY_STAR
public static final int KEY_STAR
- See Also:
- Constant Field Values
KEY_POUND
public static final int KEY_POUND
- See Also:
- Constant Field Values
Canvas
protected Canvas()
isDoubleBuffered
public boolean isDoubleBuffered()
hasPointerEvents
public boolean hasPointerEvents()
hasPointerMotionEvents
public boolean hasPointerMotionEvents()
hasRepeatEvents
public boolean hasRepeatEvents()
getKeyCode
public int getKeyCode(int gameAction)
getKeyName
public String getKeyName(int keyCode)
getGameAction
public int getGameAction(int keyCode)
setFullScreenMode
public void setFullScreenMode(boolean mode)
keyPressed
protected void keyPressed(int keyCode)
keyRepeated
protected void keyRepeated(int keyCode)
keyReleased
protected void keyReleased(int keyCode)
pointerPressed
protected void pointerPressed(int x,
int y)
pointerReleased
protected void pointerReleased(int x,
int y)
pointerDragged
protected void pointerDragged(int x,
int y)
repaint
public void repaint(int x,
int y,
int width,
int height)
repaint
public void repaint()
serviceRepaints
public void serviceRepaints()
showNotify
protected void showNotify()
hideNotify
protected void hideNotify()
paint
protected abstract void paint(Graphics arg1)
sizeChanged
protected void sizeChanged(int w,
int h)
- Overrides:
sizeChanged
in class Displayable
Copyright © 2006-2007 Jayway AB. All Rights Reserved.