|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Methods used to retrieve look and feel information from the system
Field Summary | |
static int |
COLOR_BACKGROUND
A color specifier for use with the getColor method, specifies the background color of the screen. |
static int |
COLOR_BORDER
A color specifier for use with the getColor method, identifies the color for boxes and borders when the object is to be drawn in a non-highlighted state. |
static int |
COLOR_FOREGROUND
A color specifier for use with the getColor method, specifies the foreground color of the screen. |
static int |
COLOR_HIGHLIGHTED_BACKGROUND
A color specifier for use with the getColor method, identifies the color for the focus, or focus highlight, when it is drawn as a filled in rectangle. |
static int |
COLOR_HIGHLIGHTED_BORDER
A color specifier for use with the getColor method, identifies the color for boxes and borders when the object is to be drawn in a highlighted state. |
static int |
COLOR_HIGHLIGHTED_FOREGROUND
A color specifier for use with the getColor method, identifies the color for text characters and simple graphics when they are highlighted. |
static int |
DEFAULT_FONT
Type specifier to pass into getFont method, indicates the default font of the system. |
static int |
FONT_INPUT_TEXT
Type specifier to pass into getFont method, indicates the font to be used for drawing input text |
static int |
FONT_STATIC_TEXT
Type specifier to pass into getFont method, indicates the font to be used for drawing static text |
Method Summary | |
int |
getBestImageHeight(int type)
Returns the best image height for a given image type. |
int |
getBestImageWidth(int type)
Returns the best image width for a given image type. |
int |
getBorderStyle(boolean highlighted)
Retrieve the border style used on this platform. |
int |
getColor(int type)
Retrieve a color from the system, in the form 0x00RRGGBB. |
javax.microedition.lcdui.Font |
getFont(int type)
Retrieve a font from the system. |
Field Detail |
public static final int COLOR_BACKGROUND
public static final int COLOR_FOREGROUND
public static final int COLOR_HIGHLIGHTED_BACKGROUND
public static final int COLOR_HIGHLIGHTED_FOREGROUND
public static final int COLOR_BORDER
public static final int COLOR_HIGHLIGHTED_BORDER
public static final int FONT_STATIC_TEXT
public static final int FONT_INPUT_TEXT
public static final int DEFAULT_FONT
Method Detail |
public int getColor(int type)
type
- one of COLOR_BACKGROUND, COLOR_FOREGROUND,
COLOR_HIGHLIGHTED_BACKGROUND, COLOR_HIGHLIGHTED_FOREGROUND,
COLOR_BORDER, or COLOR_HIGHLIGHTED_BORDERpublic javax.microedition.lcdui.Font getFont(int type)
type
- one of DEFAULT_FONT, Font.FONT_INPUT_TEXT, or
Font.FONT_STATIC_TEXTpublic int getBestImageWidth(int type)
type
- one of Display.LIST_ELEMENT, Display.CHOICE_GROUP_ELEMENT,
or Display.ALERTpublic int getBestImageHeight(int type)
type
- one of Display.LIST_ELEMENT, Display.CHOICE_GROUP_ELEMENT,
or Display.ALERTpublic int getBorderStyle(boolean highlighted)
highlighted
- false indicates the state when an Item does not
have cursor focus. true indicates the state when
an Item does have cursor focus
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |