FileDocCategorySizeDatePackage
TitleResources.javaAPI DocphoneME MR2 API (J2ME)2784Wed May 02 18:00:20 BST 2007com.sun.midp.chameleon.skins.resources

TitleResources

public class TitleResources extends Object

Fields Summary
private static boolean
init
Constructors Summary
private TitleResources()

    
Methods Summary
public static voidload()

        load(false);
    
public static voidload(boolean reload)

        if (init && !reload) {
            return;
        }
        
        TitleSkin.HEIGHT = SkinResources.getInt(
                SkinPropertiesIDs.TITLE_HEIGHT);
        TitleSkin.MARGIN = SkinResources.getInt(
                SkinPropertiesIDs.TITLE_MARGIN);

        int alignX = SkinResources.getInt(
                SkinPropertiesIDs.TITLE_TEXT_ALIGN_X);
        TitleSkin.TEXT_ALIGN_X = SkinResources.resourceConstantsToGraphics(
                alignX);

        int shdAlign = SkinResources.getInt(
                SkinPropertiesIDs.TITLE_TEXT_SHD_ALIGN);
        TitleSkin.TEXT_SHD_ALIGN = SkinResources.resourceConstantsToGraphics(
                shdAlign);

        TitleSkin.COLOR_FG = SkinResources.getInt(
                SkinPropertiesIDs.TITLE_COLOR_FG);
        TitleSkin.COLOR_FG_SHD = SkinResources.getInt(
                SkinPropertiesIDs.TITLE_COLOR_FG_SHD);
        TitleSkin.COLOR_BG = SkinResources.getInt(
                SkinPropertiesIDs.TITLE_COLOR_BG);
        TitleSkin.FONT = SkinResources.getFont(
                SkinPropertiesIDs.TITLE_FONT);
        TitleSkin.IMAGE_BG = SkinResources.getCompositeImage(
                SkinPropertiesIDs.TITLE_IMAGE_BG, 3);

        init = true;