FileDocCategorySizeDatePackage
WashLayer.javaAPI DocphoneME MR2 API (J2ME)2178Wed May 02 18:00:20 BST 2007com.sun.midp.chameleon.layers

WashLayer

public class WashLayer extends com.sun.midp.chameleon.CLayer

Fields Summary
Constructors Summary
public WashLayer()

        super(ScreenSkin.IMAGE_WASH, -1);
        setVisible(true);
        setOpaque(false);
    
Methods Summary
protected voidinitialize()

        super.initialize();
        bounds[H] = ScreenSkin.HEIGHT - SoftButtonSkin.HEIGHT;        
    
public voidsetVisible(boolean visible)

        if (ScreenSkin.IMAGE_WASH != null) {
            super.setVisible(visible);
        } else {
            super.setVisible(false);
        }
    
public voidupdate(com.sun.midp.chameleon.CLayer[] layers)
Update bounds of layer

param
layers - current layer can be dependant on this parameter

        super.update(layers);
        bounds[W] = ScreenSkin.WIDTH;
        if (layers[MIDPWindow.BTN_LAYER].isVisible()) {
            bounds[H] = ScreenSkin.HEIGHT - SoftButtonSkin.HEIGHT;    
        } else {
            bounds[H] = ScreenSkin.HEIGHT;
        }