FileDocCategorySizeDatePackage
RegionModel.javaAPI DocAndroid 1.5 API3324Wed May 06 22:42:46 BST 2009com.android.mms.model

RegionModel

public class RegionModel extends Model

Fields Summary
private static final String
DEFAULT_FIT
private final String
mRegionId
private String
mFit
private int
mLeft
private int
mTop
private int
mWidth
private int
mHeight
private String
mBackgroundColor
Constructors Summary
public RegionModel(String regionId, int left, int top, int width, int height)


          
                
        this(regionId, DEFAULT_FIT, left, top, width, height);
    
public RegionModel(String regionId, String fit, int left, int top, int width, int height)

        this(regionId, fit, left, top, width, height, null);
    
public RegionModel(String regionId, String fit, int left, int top, int width, int height, String bgColor)

        mRegionId = regionId;
        mFit = fit;
        mLeft = left;
        mTop = top;
        mWidth = width;
        mHeight = height;
        mBackgroundColor = bgColor;
    
Methods Summary
public java.lang.StringgetBackgroundColor()

return
the mBackgroundColor

        return mBackgroundColor;
    
public java.lang.StringgetFit()

return
the mFit

        return mFit;
    
public intgetHeight()

return
the mHeight

        return mHeight;
    
public intgetLeft()

return
the mLeft

        return mLeft;
    
public java.lang.StringgetRegionId()

return
the mRegionId

        return mRegionId;
    
public intgetTop()

return
the mTop

        return mTop;
    
public intgetWidth()

return
the mWidth

        return mWidth;
    
public voidsetBackgroundColor(java.lang.String bgColor)

param
bgColor the mBackgroundColor to set

        mBackgroundColor = bgColor;
        notifyModelChanged(true);
    
public voidsetFit(java.lang.String fit)

param
fit the mFit to set

        mFit = fit;
        notifyModelChanged(true);
    
public voidsetHeight(int height)

param
height the mHeight to set

        mHeight = height;
        notifyModelChanged(true);
    
public voidsetLeft(int left)

param
left the mLeft to set

        mLeft = left;
        notifyModelChanged(true);
    
public voidsetTop(int top)

param
top the mTop to set

        mTop = top;
        notifyModelChanged(true);
    
public voidsetWidth(int width)

param
width the mWidth to set

        mWidth = width;
        notifyModelChanged(true);