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

TickerResources

public class TickerResources extends Object

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

    
Methods Summary
public static voidload()

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

        if (init && !reload) {
            return;
        }
        
        TickerSkin.HEIGHT = SkinResources.getInt(
                SkinPropertiesIDs.TICKER_HEIGHT);

        int align = SkinResources.getInt(
                SkinPropertiesIDs.TICKER_ALIGN);
        TickerSkin.ALIGN = SkinResources.resourceConstantsToGraphics(align);

        int direction = SkinResources.getInt(
                SkinPropertiesIDs.TICKER_DIRECTION);
        TickerSkin.DIRECTION = SkinResources.resourceConstantsToGraphics(
                direction);

        TickerSkin.RATE = SkinResources.getInt(
                SkinPropertiesIDs.TICKER_RATE);
        TickerSkin.SPEED = SkinResources.getInt(
                SkinPropertiesIDs.TICKER_SPEED);
        TickerSkin.TEXT_ANCHOR_Y = SkinResources.getInt(
                SkinPropertiesIDs.TICKER_TEXT_ANCHOR_Y);

        int shdAlign = SkinResources.getInt(
                SkinPropertiesIDs.TICKER_TEXT_SHD_ALIGN);
        TickerSkin.TEXT_SHD_ALIGN = SkinResources.resourceConstantsToGraphics(
                shdAlign);

        TickerSkin.COLOR_BG = SkinResources.getInt(
                SkinPropertiesIDs.TICKER_COLOR_BG);
        TickerSkin.COLOR_FG = SkinResources.getInt(
                SkinPropertiesIDs.TICKER_COLOR_FG);
        TickerSkin.COLOR_FG_SHD = SkinResources.getInt(
                SkinPropertiesIDs.TICKER_COLOR_FG_SHD);
        TickerSkin.FONT = SkinResources.getFont(
                SkinPropertiesIDs.TICKER_FONT);
        TickerSkin.IMAGE_BG = SkinResources.getCompositeImage(
                SkinPropertiesIDs.TICKER_IMAGE_BG, 3);
        TickerSkin.IMAGE_AU_BG = SkinResources.getCompositeImage(
                SkinPropertiesIDs.TICKER_IMAGE_AU_BG, 3);

        init = true;