FileDocCategorySizeDatePackage
Theme.javaAPI DocphoneME MR2 API (J2ME)3197Wed May 02 18:00:20 BST 2007javax.microedition.lcdui

Theme

public class Theme extends Object
This class defines colors, fonts, and padding values that together form consistent Look & Feel. If it is desired to create a Theme of the existing Look by changing colors or font this is the class that has to be modified.

Fields Summary
static Font
curContentFont
Special content font, shared amongst the LCDUI package
static int
CONTENT_HEIGHT
Special content height, shared amongst the LCDUI package
static final int
BORDER_NONE
this is for no border
static final int
BORDER_SOLID
this is for a solid border
static final int
BORDER_DOTTED
this is for a dotted border
static final boolean
SCROLLS_HORIZONTAL
A boolean declaring whether the viewport is capable of scrolling horizontally. FALSE by default
static final boolean
SCROLLS_VERTICAL
A boolean declaring whether the viewport is capable of scrolling vertically. TRUE by default
static final int
PREFERRED_IMG_W
The preferred image width for an image as part of an element of a choice (12 pixels).
static final int
PREFERRED_IMG_H
The preferred image height for an image as part of an element of a choice (12 pixels).
Constructors Summary
Methods Summary
static intgetBorderStyle(boolean highlighted)

        return (highlighted == true ? Graphics.SOLID : Graphics.DOTTED);
    
static intgetColor(int colorSpecifier)

    
         
        
        switch (colorSpecifier) {
        case Display.COLOR_BACKGROUND:
            return 0xffffff;
        case Display.COLOR_FOREGROUND:
            return 0;
        case Display.COLOR_HIGHLIGHTED_BACKGROUND:
            return 0;
        case Display.COLOR_HIGHLIGHTED_FOREGROUND:
            return 0xffffff;
	case Display.COLOR_BORDER:
            return 0;
        case Display.COLOR_HIGHLIGHTED_BORDER:
            return 0;
	}
	return 0;