com.androidplot.ui
Class BoxModel
java.lang.Object
   com.androidplot.ui.BoxModel
com.androidplot.ui.BoxModel
- All Implemented Interfaces: 
- BoxModelable
- public class BoxModel 
- extends Object- implements BoxModelable
Convenience implementation of BoxModelable.
| Constructor Summary | 
| BoxModel()
 | 
| BoxModel(float marginLeft,
         float marginTop,
         float marginRight,
         float marginBottom,
         float paddingLeft,
         float paddingTop,
         float paddingRight,
         float paddingBottom)
 | 
 
 
 
BoxModel
public BoxModel()
BoxModel
public BoxModel(float marginLeft,
                float marginTop,
                float marginRight,
                float marginBottom,
                float paddingLeft,
                float paddingTop,
                float paddingRight,
                float paddingBottom)
getMarginatedRect
public android.graphics.RectF getMarginatedRect(android.graphics.RectF boundsRect)
- Returns a RectF instance describing the inner edge of the margin layer.
 
- 
- Specified by:
- getMarginatedRectin interface- BoxModelable
 
- 
- Parameters:
- boundsRect-
- Returns:
 
getPaddedRect
public android.graphics.RectF getPaddedRect(android.graphics.RectF marginRect)
- Returns a RectF instance describing the inner edge of the padding layer.
 
- 
- Specified by:
- getPaddedRectin interface- BoxModelable
 
- 
- Parameters:
- marginRect-
- Returns:
 
setMargins
public void setMargins(float left,
                       float top,
                       float right,
                       float bottom)
- 
- Specified by:
- setMarginsin interface- BoxModelable
 
- 
 
setPadding
public void setPadding(float left,
                       float top,
                       float right,
                       float bottom)
- 
- Specified by:
- setPaddingin interface- BoxModelable
 
- 
 
getMarginLeft
public float getMarginLeft()
- 
- Specified by:
- getMarginLeftin interface- BoxModelable
 
- 
 
setMarginLeft
public void setMarginLeft(float marginLeft)
- 
- Specified by:
- setMarginLeftin interface- BoxModelable
 
- 
 
getMarginTop
public float getMarginTop()
- 
- Specified by:
- getMarginTopin interface- BoxModelable
 
- 
 
setMarginTop
public void setMarginTop(float marginTop)
- 
- Specified by:
- setMarginTopin interface- BoxModelable
 
- 
 
getMarginRight
public float getMarginRight()
- 
- Specified by:
- getMarginRightin interface- BoxModelable
 
- 
 
setMarginRight
public void setMarginRight(float marginRight)
- 
- Specified by:
- setMarginRightin interface- BoxModelable
 
- 
 
getMarginBottom
public float getMarginBottom()
- 
- Specified by:
- getMarginBottomin interface- BoxModelable
 
- 
 
setMarginBottom
public void setMarginBottom(float marginBottom)
- 
 
- 
 
getPaddingLeft
public float getPaddingLeft()
- 
- Specified by:
- getPaddingLeftin interface- BoxModelable
 
- 
 
setPaddingLeft
public void setPaddingLeft(float paddingLeft)
- 
- Specified by:
- setPaddingLeftin interface- BoxModelable
 
- 
 
getPaddingTop
public float getPaddingTop()
- 
- Specified by:
- getPaddingTopin interface- BoxModelable
 
- 
 
setPaddingTop
public void setPaddingTop(float paddingTop)
- 
- Specified by:
- setPaddingTopin interface- BoxModelable
 
- 
 
getPaddingRight
public float getPaddingRight()
- 
- Specified by:
- getPaddingRightin interface- BoxModelable
 
- 
 
setPaddingRight
public void setPaddingRight(float paddingRight)
- 
- Specified by:
- setPaddingRightin interface- BoxModelable
 
- 
 
getPaddingBottom
public float getPaddingBottom()
- 
- Specified by:
- getPaddingBottomin interface- BoxModelable
 
- 
 
setPaddingBottom
public void setPaddingBottom(float paddingBottom)
- 
- Specified by:
- setPaddingBottomin interface- BoxModelable
 
- 
 
Copyright © 2010-2013 androidplot.com. All Rights Reserved.