-
public interface BoxModelableDefines the properties of a BoxModel as used by Androidplot. Essentially, the BoxModel composes three nested (but not necessarily concentric) rectangles: * The bounding box, which is the outer-most box. * The marginated box, which is calculated by applying the margin insets to the bounding box. * The padded box, which is calculated by applying the padding insets to the marginated box.
-
-
Method Summary
Modifier and Type Method Description abstract RectFgetMarginatedRect(RectF boundsRect)Returns a RectF instance describing the inner edge of the margin layer. abstract RectFgetPaddedRect(RectF marginRect)Returns a RectF instance describing the inner edge of the padding layer. abstract voidsetMargins(float left, float top, float right, float bottom)abstract voidsetPadding(float left, float top, float right, float bottom)abstract floatgetMarginLeft()abstract voidsetMarginLeft(float marginLeft)abstract floatgetMarginTop()abstract voidsetMarginTop(float marginTop)abstract floatgetMarginRight()abstract voidsetMarginRight(float marginRight)abstract floatgetMarginBottom()abstract voidsetMarginBottom(float marginBottm)abstract floatgetPaddingLeft()abstract voidsetPaddingLeft(float paddingLeft)abstract floatgetPaddingTop()abstract voidsetPaddingTop(float paddingTop)abstract floatgetPaddingRight()abstract voidsetPaddingRight(float paddingRight)abstract floatgetPaddingBottom()abstract voidsetPaddingBottom(float paddingBottom)-
-
Method Detail
-
getMarginatedRect
abstract RectF getMarginatedRect(RectF boundsRect)
Returns a RectF instance describing the inner edge of the margin layer.
-
getPaddedRect
abstract RectF getPaddedRect(RectF marginRect)
Returns a RectF instance describing the inner edge of the padding layer.
-
setMargins
abstract void setMargins(float left, float top, float right, float bottom)
-
setPadding
abstract void setPadding(float left, float top, float right, float bottom)
-
getMarginLeft
abstract float getMarginLeft()
-
setMarginLeft
abstract void setMarginLeft(float marginLeft)
-
getMarginTop
abstract float getMarginTop()
-
setMarginTop
abstract void setMarginTop(float marginTop)
-
getMarginRight
abstract float getMarginRight()
-
setMarginRight
abstract void setMarginRight(float marginRight)
-
getMarginBottom
abstract float getMarginBottom()
-
setMarginBottom
abstract void setMarginBottom(float marginBottm)
-
getPaddingLeft
abstract float getPaddingLeft()
-
setPaddingLeft
abstract void setPaddingLeft(float paddingLeft)
-
getPaddingTop
abstract float getPaddingTop()
-
setPaddingTop
abstract void setPaddingTop(float paddingTop)
-
getPaddingRight
abstract float getPaddingRight()
-
setPaddingRight
abstract void setPaddingRight(float paddingRight)
-
getPaddingBottom
abstract float getPaddingBottom()
-
setPaddingBottom
abstract void setPaddingBottom(float paddingBottom)
-
-
-
-