BoundsRule
public
class
BoundsRule
extends Object
java.lang.Object | |
↳ | androidx.leanback.graphics.BoundsRule |
This class contains the rules for updating the bounds of a
CompositeDrawable.ChildDrawable
. It contains four rules, one for each value of the
rectangular bound - left/top/right/bottom.
Summary
Nested classes | |
---|---|
class |
BoundsRule.ValueRule
This class represents individual rules for updating the bounds. |
Fields | |
---|---|
public
BoundsRule.ValueRule |
bottom
|
public
BoundsRule.ValueRule |
left
|
public
BoundsRule.ValueRule |
right
|
public
BoundsRule.ValueRule |
top
|
Public constructors | |
---|---|
BoundsRule()
|
|
BoundsRule(BoundsRule boundsRule)
|
Public methods | |
---|---|
void
|
calculateBounds(Rect rect, Rect result)
Takes in the current bounds and sets the final values based on the individual rules in the result object. |
Inherited methods | |
---|---|
Fields
Public constructors
BoundsRule
public BoundsRule ()
Public methods
calculateBounds
public void calculateBounds (Rect rect, Rect result)
Takes in the current bounds and sets the final values based on the individual rules in the result object.
Parameters | |
---|---|
rect |
Rect : Represents the current bounds. |
result |
Rect : Represents the final bounds.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-09-30 UTC.