| 
 | |||||||||
| 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.nokia.mid.ui.FullCanvas
public abstract class FullCanvas
FullCanvas provides totally full screen painting area.
Implementation need to draw any status indicators overlaid on the FullCanvas. Implementations should draw these indicators on top left corner, but there may be reasons to deviate from this rule. Applications must take care that the display doens't become cluttered even if overlaid indicators appear.
Commands can't be added to FullCanvas. Pressing the keys normally tied to Commands (e.g. softbuttons, or other command buttons) will result direct keystroke events (see documentation on key events on javax.microedition.Canvas). FullCanvas defines new constants that are used for these key codes.
Callback methods of FullCanvas have same semantics as in standard Canvas. However, the DirectGraphics will be passed to the paint method of com.nokia.mid.ui.FullCanvas.
Generally in FullCanvas all key presses are reported as normal key press events through keyPressed(), keyRepeated() and keyReleased() methods. There are some additional constant key code definitions in FullCanvas. All the normal key codes reported in Canvas are also reported.
| Field Summary | |
|---|---|
| static int | KEY_DOWN_ARROWKey code constant for Down arrow key. | 
| static int | KEY_ENDKey code constant for End key. | 
| static int | KEY_LEFT_ARROWKey code constant for Left arrow key. | 
| static int | KEY_RIGHT_ARROWKey code constant for Right arrow key. | 
| static int | KEY_SENDKey code constant for Send key. | 
| static int | KEY_SOFTKEY1Key code constant for left softkey or first command button key. | 
| static int | KEY_SOFTKEY2Key code constant for right softkey or last command button key. | 
| static int | KEY_SOFTKEY3Key code constant for select key, middle softkey or second command button key. | 
| static int | KEY_UP_ARROWKey code constant for Up arrow key. | 
| 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  | FullCanvas()Constructs a new FullCanvas object. | 
| protected  | FullCanvas(boolean transparency)Constructs a new FullCanvas object with opaque or transparent canvas. | 
| Method Summary | |
|---|---|
|  void | addCommand(javax.microedition.lcdui.Command cmd)Throws IllegalStateException. | 
|  boolean | getTransparency()Returns canvas transparency. | 
|  void | setCommandListener(javax.microedition.lcdui.CommandListener l)Throws IllegalStateException. | 
| Methods inherited from class javax.microedition.lcdui.Canvas | 
|---|
| getGameAction, getHeight, getKeyCode, getKeyName, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, hideNotify, isDoubleBuffered, keyPressed, keyReleased, keyRepeated, paint, pointerDragged, pointerPressed, pointerReleased, repaint, repaint, serviceRepaints, setFullScreenMode, showNotify, sizeChanged | 
| Methods inherited from class javax.microedition.lcdui.Displayable | 
|---|
| getTicker, getTitle, getWidth, isShown, removeCommand, setTicker, setTitle | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final int KEY_SOFTKEY1
public static final int KEY_SOFTKEY2
public static final int KEY_SEND
public static final int KEY_END
public static final int KEY_SOFTKEY3
public static final int KEY_UP_ARROW
public static final int KEY_DOWN_ARROW
public static final int KEY_LEFT_ARROW
public static final int KEY_RIGHT_ARROW
| Constructor Detail | 
|---|
protected FullCanvas()
protected FullCanvas(boolean transparency)
transparency - true if transparent canvas is needed,
 false if opaque canvas is needed| Method Detail | 
|---|
public boolean getTransparency()
FullCanvas has transparent canvas,
 false if canvas is opaque.public void addCommand(javax.microedition.lcdui.Command cmd)
addCommand in class javax.microedition.lcdui.Displayablejava.lang.IllegalStateException - thrown alwayspublic void setCommandListener(javax.microedition.lcdui.CommandListener l)
setCommandListener in class javax.microedition.lcdui.Displayablejava.lang.IllegalStateException - thrown always| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||