KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > microedition > lcdui > Canvas

javax.microedition.lcdui
Class Canvas

java.lang.Object
  |
  +--javax.microedition.lcdui.Displayable
        |
        +--javax.microedition.lcdui.Canvas
Direct Known Subclasses:
GameCanvas
See Also:
Source Code, sizeChanged(), setFullScreenMode(boolean), Displayable.isShown(), hideNotify(), showNotify(), Display.callSerially(), commands, getKeyCode(int gameAction), getGameAction(int keyCode), GAME_D, GAME_C, GAME_B, GAME_A, FIRE, RIGHT, LEFT, DOWN, UP, getKeyName(), TextField, TextBox, KEY_POUND, KEY_STAR, KEY_NUM9, KEY_NUM8, KEY_NUM7, KEY_NUM6, KEY_NUM5, KEY_NUM4, KEY_NUM3, KEY_NUM2, KEY_NUM1, KEY_NUM0, Screen

protected Canvas()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int DOWN
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int FIRE
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int GAME_A
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int GAME_B
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int GAME_C
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int GAME_D
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getGameAction(int keyCode)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getHeight()
See Also:
Displayable, sizeChanged(int, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getKeyCode(int gameAction)
See Also:
getGameAction(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getKeyName(int keyCode)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getWidth()
See Also:
Displayable, sizeChanged(int, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean hasPointerEvents()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean hasPointerMotionEvents()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean hasRepeatEvents()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void hideNotify()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isDoubleBuffered()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void keyPressed(int keyCode)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void keyReleased(int keyCode)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void keyRepeated(int keyCode)
See Also:
hasRepeatEvents()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int KEY_NUM0
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int KEY_NUM1
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int KEY_NUM2
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int KEY_NUM3
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int KEY_NUM4
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int KEY_NUM5
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int KEY_NUM6
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int KEY_NUM7
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int KEY_NUM8
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int KEY_NUM9
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int KEY_POUND
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int KEY_STAR
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int LEFT
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected abstract void paint(Graphics g)
See Also:
SOLID, Font.getDefaultFont()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void pointerDragged(int x,
                              int y)
See Also:
hasPointerMotionEvents()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void pointerPressed(int x,
                              int y)
See Also:
hasPointerEvents()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void pointerReleased(int x,
                               int y)
See Also:
hasPointerEvents()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final void repaint()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final void repaint(int x,
                          int y,
                          int width,
                          int height)
See Also:
serviceRepaints(), Display.callSerially(Runnable)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int RIGHT
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final void serviceRepaints()
See Also:
Display.callSerially(Runnable)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setFullScreenMode(boolean mode)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void showNotify()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void sizeChanged(int w,
                           int h)
See Also:
Displayable
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int UP
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags