com.androidplot.ui
Class BoxModel

java.lang.Object
  extended by 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)
           
 
Method Summary
 android.graphics.RectF getMarginatedRect(android.graphics.RectF boundsRect)
          Returns a RectF instance describing the inner edge of the margin layer.
 float getMarginBottom()
           
 float getMarginLeft()
           
 float getMarginRight()
           
 float getMarginTop()
           
 android.graphics.RectF getPaddedRect(android.graphics.RectF marginRect)
          Returns a RectF instance describing the inner edge of the padding layer.
 float getPaddingBottom()
           
 float getPaddingLeft()
           
 float getPaddingRight()
           
 float getPaddingTop()
           
 void setMarginBottom(float marginBottom)
           
 void setMarginLeft(float marginLeft)
           
 void setMarginRight(float marginRight)
           
 void setMargins(float left, float top, float right, float bottom)
           
 void setMarginTop(float marginTop)
           
 void setPadding(float left, float top, float right, float bottom)
           
 void setPaddingBottom(float paddingBottom)
           
 void setPaddingLeft(float paddingLeft)
           
 void setPaddingRight(float paddingRight)
           
 void setPaddingTop(float paddingTop)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoxModel

public BoxModel()

BoxModel

public BoxModel(float marginLeft,
                float marginTop,
                float marginRight,
                float marginBottom,
                float paddingLeft,
                float paddingTop,
                float paddingRight,
                float paddingBottom)
Method Detail

getMarginatedRect

public android.graphics.RectF getMarginatedRect(android.graphics.RectF boundsRect)
Returns a RectF instance describing the inner edge of the margin layer.

Specified by:
getMarginatedRect in 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:
getPaddedRect in interface BoxModelable
Parameters:
marginRect -
Returns:

setMargins

public void setMargins(float left,
                       float top,
                       float right,
                       float bottom)
Specified by:
setMargins in interface BoxModelable

setPadding

public void setPadding(float left,
                       float top,
                       float right,
                       float bottom)
Specified by:
setPadding in interface BoxModelable

getMarginLeft

public float getMarginLeft()
Specified by:
getMarginLeft in interface BoxModelable

setMarginLeft

public void setMarginLeft(float marginLeft)
Specified by:
setMarginLeft in interface BoxModelable

getMarginTop

public float getMarginTop()
Specified by:
getMarginTop in interface BoxModelable

setMarginTop

public void setMarginTop(float marginTop)
Specified by:
setMarginTop in interface BoxModelable

getMarginRight

public float getMarginRight()
Specified by:
getMarginRight in interface BoxModelable

setMarginRight

public void setMarginRight(float marginRight)
Specified by:
setMarginRight in interface BoxModelable

getMarginBottom

public float getMarginBottom()
Specified by:
getMarginBottom in interface BoxModelable

setMarginBottom

public void setMarginBottom(float marginBottom)

getPaddingLeft

public float getPaddingLeft()
Specified by:
getPaddingLeft in interface BoxModelable

setPaddingLeft

public void setPaddingLeft(float paddingLeft)
Specified by:
setPaddingLeft in interface BoxModelable

getPaddingTop

public float getPaddingTop()
Specified by:
getPaddingTop in interface BoxModelable

setPaddingTop

public void setPaddingTop(float paddingTop)
Specified by:
setPaddingTop in interface BoxModelable

getPaddingRight

public float getPaddingRight()
Specified by:
getPaddingRight in interface BoxModelable

setPaddingRight

public void setPaddingRight(float paddingRight)
Specified by:
setPaddingRight in interface BoxModelable

getPaddingBottom

public float getPaddingBottom()
Specified by:
getPaddingBottom in interface BoxModelable

setPaddingBottom

public void setPaddingBottom(float paddingBottom)
Specified by:
setPaddingBottom in interface BoxModelable


Copyright © 2010-2013 androidplot.com. All Rights Reserved.