RegionModelpublic 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.String | getBackgroundColor()
return mBackgroundColor;
| public java.lang.String | getFit()
return mFit;
| public int | getHeight()
return mHeight;
| public int | getLeft()
return mLeft;
| public java.lang.String | getRegionId()
return mRegionId;
| public int | getTop()
return mTop;
| public int | getWidth()
return mWidth;
| public void | setBackgroundColor(java.lang.String bgColor)
mBackgroundColor = bgColor;
notifyModelChanged(true);
| public void | setFit(java.lang.String fit)
mFit = fit;
notifyModelChanged(true);
| public void | setHeight(int height)
mHeight = height;
notifyModelChanged(true);
| public void | setLeft(int left)
mLeft = left;
notifyModelChanged(true);
| public void | setTop(int top)
mTop = top;
notifyModelChanged(true);
| public void | setWidth(int width)
mWidth = width;
notifyModelChanged(true);
|
|