|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.lcdui.Displayable
javax.microedition.lcdui.Canvas
com.incrediblesoft.redjey.demo.RedJDemoCanvas
public class RedJDemoCanvas
Field Summary | |
---|---|
static int |
_FPS
|
static int |
EXIT_STATE
|
static int |
IDLE_STATE
State |
static int |
INIT_AND_WORK_STATE
|
static int |
INIT_STATE
|
static int |
PAUSED_STATE
|
static int |
WORKING_STATE
|
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 | |
---|---|
RedJDemoCanvas()
|
Method Summary | |
---|---|
int |
getHeight()
|
static RedJDemoCanvas |
getInstance()
|
int |
getState()
|
int |
getWidth()
|
void |
run()
Thread |
void |
setFps(int fps)
|
void |
setState(int state)
|
Methods inherited from class javax.microedition.lcdui.Canvas |
---|
getGameAction, getKeyCode, getKeyName, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, isDoubleBuffered, repaint, repaint, serviceRepaints, setFullScreenMode |
Methods inherited from class javax.microedition.lcdui.Displayable |
---|
addCommand, getTicker, getTitle, isShown, removeCommand, setCommandListener, setTicker, setTitle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int IDLE_STATE
public static final int INIT_STATE
public static final int INIT_AND_WORK_STATE
public static final int PAUSED_STATE
public static final int WORKING_STATE
public static final int EXIT_STATE
public static int _FPS
Constructor Detail |
---|
public RedJDemoCanvas()
Method Detail |
---|
public static RedJDemoCanvas getInstance()
public int getWidth()
getWidth
in class javax.microedition.lcdui.Displayable
public int getHeight()
getHeight
in class javax.microedition.lcdui.Displayable
public void setState(int state)
public int getState()
public void setFps(int fps)
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |