|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCanvas
org.kobjects.kui.KDisplay
public class KDisplay
KDisplay is a singleton class.
| Field Summary | |
|---|---|
static int |
BORDER
|
static int |
CANVAS_HEIGHT
|
static int |
CANVAS_WIDTH
|
static int |
COMMAND_HEIGHT
0 if commands are handled by the system, command font height otherwise |
static int |
CONTENT_WIDTH
|
static java.lang.String |
DELETE_SK
|
static boolean |
fakeFullscreen
Assume fullscreen mode although CanvasSwitch is not loadable (for SE P 900, 910) |
static boolean |
fullScreenMode
|
static int |
ICON_ARROW_OFF
|
static int |
ICON_ARROW_ON
|
static int |
ICON_BULLET
|
static int |
ICON_DOWN_OFF
|
static int |
ICON_DOWN_ON
|
static int |
ICON_LEFT_RIGHT_OFF
|
static int |
ICON_LEFT_RIGHT_ON
|
static int |
ICON_UP_OFF
|
static int |
ICON_UP_ON
|
static KDisplay |
instance
|
static int |
KEYCODE_CLEAR
Normalized key code for the clear key |
static int |
KEYCODE_LSK
Normalized key code for the left soft key |
static int |
KEYCODE_RSK
Normalized key code for the right soft key |
static Image |
logo
|
static Display |
midpDisplay
|
static int |
percent
|
static java.lang.String |
PLATFORM
|
static Form |
repaintTimeoutForm
|
static int |
STYLE_BUTTON
|
static int |
STYLE_COMMAND
|
static int |
STYLE_CONTENT
|
static int |
STYLE_EDIT
|
static int |
STYLE_ITEM
|
static int |
STYLE_POPUP
|
static int |
STYLE_TITLE
|
static int |
SYMBOL_COUNT
|
static int |
SYMBOL_HEIGHT
|
static int |
SYMBOL_WIDTH
|
static Image |
SYMBOLS
|
static boolean |
widescreen
|
| Constructor Summary | |
|---|---|
KDisplay()
|
|
| Method Summary | |
|---|---|
void |
commandAction(Command command,
java.lang.Object source)
Internal implementation for alert handling, please do not use |
static KForm |
createAlert(java.lang.String title,
java.lang.String text,
Image image)
Creates an alert form |
static void |
debug(int i,
java.lang.String text)
|
static void |
drawIcon(Graphics g,
Image img,
int x,
int y,
int index,
int countX,
int countY)
|
static java.lang.Object |
getCurrent()
Returns the current form or displayable. |
Display |
getDisplay()
Returns the underlying LCUDI display instance |
static KDisplay |
getDisplay(MIDlet midlet)
Returns the display instance. |
Style |
getStyle(int index)
|
static boolean |
isPositiveCommand(Command cmd)
Determines whether the given Command is a "positive" (OK, ITEM, SCREEN) or "negative" (CANCEL, BACK, STOP, EXIT) command. |
protected void |
keyPressed(int keyCode)
|
protected void |
keyReleased(int keyCode)
|
protected void |
keyRepeated(int keyCode)
|
static Image |
loadResImage(java.lang.String fileName)
|
int |
normalizeKey(int keyCode)
Normalizes device dependent key codes to the corresponding WTK values. |
protected void |
paint(Graphics graphics)
Internal method; draws the current KForm, popup, wait notification etc. |
static void |
popup(java.lang.String text,
int time)
Displays a popup for the given time |
static void |
requestRepaint()
Requests a repaint; internal method, called by KForm.repaint() |
void |
run()
Internal implementation for timer handling and for screen updates, please do not use |
java.lang.Object |
setCurrent(java.lang.Object scr)
Sets the current form or displayable. |
static void |
setPercent(int amount,
java.lang.String message)
Grays out the current screen contents and displays a percent bar and the message (optional) on top. |
void |
setStyle(int index,
Style style)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int KEYCODE_LSK
public static final int KEYCODE_RSK
public static final int KEYCODE_CLEAR
public static java.lang.String PLATFORM
public static java.lang.String DELETE_SK
public static KDisplay instance
public static Display midpDisplay
public static int percent
public static Image logo
public static Form repaintTimeoutForm
public static final Image SYMBOLS
public static final int ICON_DOWN_ON
public static final int ICON_UP_ON
public static final int ICON_DOWN_OFF
public static final int ICON_UP_OFF
public static final int ICON_LEFT_RIGHT_ON
public static final int ICON_LEFT_RIGHT_OFF
public static final int ICON_ARROW_OFF
public static final int ICON_ARROW_ON
public static final int ICON_BULLET
public static final int STYLE_CONTENT
public static final int STYLE_ITEM
public static final int STYLE_EDIT
public static final int STYLE_BUTTON
public static final int STYLE_TITLE
public static final int STYLE_COMMAND
public static final int STYLE_POPUP
public static final int SYMBOL_COUNT
public static final int SYMBOL_WIDTH
public static final int SYMBOL_HEIGHT
public static boolean fakeFullscreen
public static boolean fullScreenMode
public static int CANVAS_HEIGHT
public static int CANVAS_WIDTH
public static int CONTENT_WIDTH
public static int COMMAND_HEIGHT
public static int BORDER
public static boolean widescreen
| Constructor Detail |
|---|
public KDisplay()
| Method Detail |
|---|
public static KDisplay getDisplay(MIDlet midlet)
public static KForm createAlert(java.lang.String title,
java.lang.String text,
Image image)
title - Title of the alerttext - Alert textimage - Image
public java.lang.Object setCurrent(java.lang.Object scr)
public static void requestRepaint()
public static void setPercent(int amount,
java.lang.String message)
amount - percent valuemessage - short optional message stringprotected void paint(Graphics graphics)
public int normalizeKey(int keyCode)
protected final void keyPressed(int keyCode)
protected final void keyReleased(int keyCode)
protected final void keyRepeated(int keyCode)
public static java.lang.Object getCurrent()
public static void popup(java.lang.String text,
int time)
text - Popup texttime - Display time in millisectondspublic void run()
run in interface java.lang.Runnable
public void commandAction(Command command,
java.lang.Object source)
commandAction in interface KCommandListenerpublic Display getDisplay()
public static Image loadResImage(java.lang.String fileName)
public static boolean isPositiveCommand(Command cmd)
cmd - The command to be examined
public void setStyle(int index,
Style style)
public Style getStyle(int index)
public static void debug(int i,
java.lang.String text)
public static void drawIcon(Graphics g,
Image img,
int x,
int y,
int index,
int countX,
int countY)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||