|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Canvas com.nokia.mid.ui.FullCanvas
public abstract class FullCanvas
FullCanvas provides a full screen painting area.
Implementations need to draw status indicators overlaid on the FullCanvas. These should be drawn in the top left corner, but there may be reasons for deviating from this rule. Applications must ensure that the display does not become cluttered even if overlaid indicators appear.
Commands cannot be added to FullCanvas. Pressing the keys normally tied to Commands (e.g. softbuttons, or other command buttons) will result in direct keystroke events (see documentation on key events in javax.microedition.Canvas). FullCanvas defines new constants that are used for these key codes.
Callback methods of FullCanvas have the same semantics as standard Canvas does, although the DirectGraphics will be passed to the paint method of com.nokia.mid.ui.FullCanvas.
In general, all key presses in FullCanvas 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 in FullCanvas.
Field Summary | |
---|---|
static int |
KEY_DOWN_ARROW
Key code constant for Down arrow key. |
static int |
KEY_END
Key code constant for End key. |
static int |
KEY_LEFT_ARROW
Key code constant for Left arrow key. |
static int |
KEY_RIGHT_ARROW
Key code constant for Right arrow key. |
static int |
KEY_SEND
Key code constant for Send key. |
static int |
KEY_SOFTKEY1
Key code constant for left softkey or first command button key. |
static int |
KEY_SOFTKEY2
Key code constant for right softkey or last command button key. |
static int |
KEY_SOFTKEY3
Key code constant for select key, middle softkey or second command button key. |
static int |
KEY_UP_ARROW
Key code constant for Up arrow key. |
Constructor Summary | |
---|---|
protected |
FullCanvas()
Deprecated. As of Nokia UI API 1.1 in devices with MIDP 2.0 or higher, replaced by javax.microedition.lcdui.Canvas.setFullScreenMode(boolean). |
Method Summary | |
---|---|
void |
addCommand(Command cmd)
Deprecated. As of Nokia UI API 1.1 in devices with MIDP 2.0 or higher, replaced by javax.microedition.lcdui.Canvas.addCommand(Command). |
void |
setCommandListener(CommandListener l)
Deprecated. As of Nokia UI API 1.1 in devices with MIDP 2.0 or higher, replaced by javax.microedition.lcdui.Canvas.setCommandListener(CommandListener). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, 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()
Method Detail |
---|
public void addCommand(Command cmd)
java.lang.IllegalStateException
- always thrownpublic void setCommandListener(CommandListener l)
java.lang.IllegalStateException
- always thrown
|
forum.nokia.com/java | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |