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

BackgroundLayer

public class BackgroundLayer extends CLayer
Background layer responsible for window background painting, should be added as the most bottom layer of a window

Fields Summary
Constructors Summary
public BackgroundLayer(Image bgImage, int bgColor)

        super(bgImage, bgColor);
        super.opaque = true;
        visible = !transparent;
        tileBG = true;
    
Methods Summary
public voidsetBackground(Image bgImage, int bgColor)
Set new background image or color for the layer

param
bgImage image to be tiled as background
param
bgColor the color to fill background with in the case null tile image is specified

        setBackground(bgImage, tileBG, bgColor);
        visible = !transparent;