com.androidplot.ui
Interface BoxModelable

All Known Implementing Classes:
BoxModel, EmptyWidget, PieWidget, TextLabelWidget, Widget, XYGraphWidget, XYLegendWidget

public interface BoxModelable

Encapsulates the functionality of a BoxModel. See http://www.w3.org/TR/CSS21/box.html for a good explanation of how the box model works.


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 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)
           
 

Method Detail

getMarginatedRect

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

Parameters:
boundsRect -
Returns:

getPaddedRect

android.graphics.RectF getPaddedRect(android.graphics.RectF marginRect)
Returns a RectF instance describing the inner edge of the padding layer.

Parameters:
marginRect -
Returns:

setMargins

void setMargins(float left,
                float top,
                float right,
                float bottom)

setPadding

void setPadding(float left,
                float top,
                float right,
                float bottom)

getMarginLeft

float getMarginLeft()

setMarginLeft

void setMarginLeft(float marginLeft)

getMarginTop

float getMarginTop()

setMarginTop

void setMarginTop(float marginTop)

getMarginRight

float getMarginRight()

setMarginRight

void setMarginRight(float marginRight)

getMarginBottom

float getMarginBottom()

getPaddingLeft

float getPaddingLeft()

setPaddingLeft

void setPaddingLeft(float paddingLeft)

getPaddingTop

float getPaddingTop()

setPaddingTop

void setPaddingTop(float paddingTop)

getPaddingRight

float getPaddingRight()

setPaddingRight

void setPaddingRight(float paddingRight)

getPaddingBottom

float getPaddingBottom()

setPaddingBottom

void setPaddingBottom(float paddingBottom)


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