jMobileCore toolkit

com.jmobilecore.ui.core
Class PlatformCanvas

java.lang.Object
  extended by javax.microedition.lcdui.Displayable
      extended by javax.microedition.lcdui.Canvas
          extended by com.jmobilecore.ui.core.PlatformCanvas
Direct Known Subclasses:
ScreenCanvas, SplashScreen

public abstract class PlatformCanvas
extends javax.microedition.lcdui.Canvas

Provides platform dependent settings for Sun WTK platform

Author:
Greg Gridin

Field Summary
static boolean DOUBLE_BUFFER
          Indicated whether the phone has hardware support for double buffering for screen painting
static int HEIGHT
          The height in pixels of a screen
static int KEY_CLEAR
          Key code for CLEAR key
static int KEY_DOWN
          Key code for the DOWN game action.
static int KEY_ENTER
          Key code for "fictitious" ENTER key Some phones does not have FIRE button, we have to find out the replacement
static int KEY_FIRE
          Key code for the FIRE game action.
static int KEY_LEFT
          Key code for the LEFT game action.
static int KEY_PHONE_OFF
          Key code for PHONE_OFF key (red button)
static int KEY_PHONE_ON
          Key code for PHONE_ON key (green button)
static int KEY_RIGHT
          Key code for the RIGHT game action.
static int KEY_SOFT_LEFT
          Key code for left soft key
static int KEY_SOFT_RIGHT
          Key code for right soft key
static int KEY_UNDEFINED
          "No-key" key code
static int KEY_UP
          Key code for the UP game action.
static int KEY_VOLUME_DOWN
          Key code for VOLUME DOWN key
static int KEY_VOLUME_UP
          Key code for VOLUME UP key
static byte PLATFORM
           
static byte PLATFORM_BARTEO
           
static byte PLATFORM_LG
           
static byte PLATFORM_MOTOROLA
           
static byte PLATFORM_MOTOROLA_V
           
static byte PLATFORM_NOKIA
           
static byte PLATFORM_NOKIA_30
           
static byte PLATFORM_SAMSUNG
           
static byte PLATFORM_SIEMENS
           
static byte PLATFORM_SONYERICSSON
           
static byte PLATFORM_SUN_WTK
           
static int WIDTH
          The width in pixels of a screen
 
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
PlatformCanvas()
           
 
Method Summary
 
Methods inherited from class javax.microedition.lcdui.Canvas
getGameAction, getHeight, getKeyCode, getKeyName, getWidth, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, hideNotify, isDoubleBuffered, keyPressed, keyReleased, keyRepeated, paint, pointerDragged, pointerPressed, pointerReleased, repaint, repaint, serviceRepaints, showNotify
 
Methods inherited from class javax.microedition.lcdui.Displayable
addCommand, isShown, removeCommand, setCommandListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOUBLE_BUFFER

public static final boolean DOUBLE_BUFFER
Indicated whether the phone has hardware support for double buffering for screen painting

See Also:
Constant Field Values

HEIGHT

public static final int HEIGHT
The height in pixels of a screen


KEY_CLEAR

public static final int KEY_CLEAR
Key code for CLEAR key

See Also:
Constant Field Values

KEY_DOWN

public static final int KEY_DOWN
Key code for the DOWN game action.

See Also:
Constant Field Values

KEY_ENTER

public static final int KEY_ENTER
Key code for "fictitious" ENTER key Some phones does not have FIRE button, we have to find out the replacement

See Also:
Constant Field Values

KEY_FIRE

public static final int KEY_FIRE
Key code for the FIRE game action.

See Also:
Constant Field Values

KEY_LEFT

public static final int KEY_LEFT
Key code for the LEFT game action.

See Also:
Constant Field Values

KEY_PHONE_OFF

public static final int KEY_PHONE_OFF
Key code for PHONE_OFF key (red button)

See Also:
Constant Field Values

KEY_PHONE_ON

public static final int KEY_PHONE_ON
Key code for PHONE_ON key (green button)

See Also:
Constant Field Values

KEY_RIGHT

public static final int KEY_RIGHT
Key code for the RIGHT game action.

See Also:
Constant Field Values

KEY_SOFT_LEFT

public static final int KEY_SOFT_LEFT
Key code for left soft key

See Also:
Constant Field Values

KEY_SOFT_RIGHT

public static final int KEY_SOFT_RIGHT
Key code for right soft key

See Also:
Constant Field Values

KEY_UNDEFINED

public static final int KEY_UNDEFINED
"No-key" key code

See Also:
Constant Field Values

KEY_UP

public static final int KEY_UP
Key code for the UP game action.

See Also:
Constant Field Values

KEY_VOLUME_DOWN

public static final int KEY_VOLUME_DOWN
Key code for VOLUME DOWN key

See Also:
Constant Field Values

KEY_VOLUME_UP

public static final int KEY_VOLUME_UP
Key code for VOLUME UP key

See Also:
Constant Field Values

PLATFORM

public static final byte PLATFORM
See Also:
Constant Field Values

PLATFORM_BARTEO

public static final byte PLATFORM_BARTEO
See Also:
Constant Field Values

PLATFORM_LG

public static final byte PLATFORM_LG
See Also:
Constant Field Values

PLATFORM_MOTOROLA

public static final byte PLATFORM_MOTOROLA
See Also:
Constant Field Values

PLATFORM_MOTOROLA_V

public static final byte PLATFORM_MOTOROLA_V
See Also:
Constant Field Values

PLATFORM_NOKIA

public static final byte PLATFORM_NOKIA
See Also:
Constant Field Values

PLATFORM_NOKIA_30

public static final byte PLATFORM_NOKIA_30
See Also:
Constant Field Values

PLATFORM_SAMSUNG

public static final byte PLATFORM_SAMSUNG
See Also:
Constant Field Values

PLATFORM_SIEMENS

public static final byte PLATFORM_SIEMENS
See Also:
Constant Field Values

PLATFORM_SONYERICSSON

public static final byte PLATFORM_SONYERICSSON
See Also:
Constant Field Values

PLATFORM_SUN_WTK

public static final byte PLATFORM_SUN_WTK
See Also:
Constant Field Values

WIDTH

public static final int WIDTH
The width in pixels of a screen

Constructor Detail

PlatformCanvas

public PlatformCanvas()

jMobileCore toolkit