ConstraintReference


public class ConstraintReference implements Reference

Known direct subclasses
Known indirect subclasses
AlignHorizontallyReference
AlignVerticallyReference
BarrierReference
ChainReference

HelperReference for Chains.

FlowReference

The FlowReference class can be used to store the relevant properties of a Flow Helper when parsing the Flow Helper information in a JSON representation.

GridReference

A HelperReference of a Grid Helper that helps enable Grid in Compose

HorizontalChainReference
VerticalChainReference

Summary

Nested types

Public constructors

Public methods

void
addCustomColor(String name, int color)
void
addCustomFloat(String name, float value)
ConstraintReference
alpha(float alpha)
void
void

apply all the constraints attributes of the mConstraintWidget

ConstraintReference
ConstraintReference
ConstraintReference
ConstraintReference
baselineToTop(Object reference)
ConstraintReference
bias(float value)
ConstraintReference
ConstraintReference
ConstraintReference
bottomToTop(Object reference)
ConstraintReference
ConstraintReference
ConstraintReference
circularConstraint(Object reference, float angle, float distance)
ConstraintReference
ConstraintReference

Clears all constraints.

ConstraintReference
ConstraintReference
ConstraintWidget
ConstraintReference
end()
ConstraintReference
endToEnd(Object reference)
ConstraintReference
endToStart(Object reference)
float
ConstraintWidget
Facade
Dimension
int
float
Object
float
float
float
float
float
float
float
String
float
float
float
int
getVerticalChainStyle(int chainStyle)
float
Object
Dimension
ConstraintReference
height(Dimension dimension)
ConstraintReference
horizontalBias(float value)
ConstraintReference
ConstraintReference
leftToLeft(Object reference)
ConstraintReference
leftToRight(Object reference)
ConstraintReference
margin(Object marginValue)
ConstraintReference
margin(int value)
ConstraintReference
marginGone(Object marginGoneValue)
ConstraintReference
marginGone(int value)
ConstraintReference
pivotX(float x)
ConstraintReference
pivotY(float y)
ConstraintReference
ConstraintReference
rightToLeft(Object reference)
ConstraintReference
rightToRight(Object reference)
ConstraintReference
rotationX(float x)
ConstraintReference
rotationY(float y)
ConstraintReference
rotationZ(float z)
ConstraintReference
scaleX(float x)
ConstraintReference
scaleY(float y)
void
void
setFacade(Facade facade)
ConstraintReference
setHeight(Dimension dimension)
void
setHorizontalChainStyle(int chainStyle)
void
void
void
void
setVerticalChainStyle(int chainStyle)
void
setVerticalChainWeight(float weight)
void
ConstraintReference
setWidth(Dimension dimension)
ConstraintReference
ConstraintReference
startToEnd(Object reference)
ConstraintReference
startToStart(Object reference)
ConstraintReference
top()
ConstraintReference
topToBottom(Object reference)
ConstraintReference
topToTop(Object reference)
ConstraintReference
translationX(float x)
ConstraintReference
translationY(float y)
ConstraintReference
translationZ(float z)
void

Validate the constraints

ConstraintReference
verticalBias(float value)
ConstraintReference
visibility(int visibility)
ConstraintReference
width(Dimension dimension)

Protected fields

mBottomToBottom

Added in 1.1.0
protected Object mBottomToBottom

mBottomToTop

Added in 1.1.0
protected Object mBottomToTop

mEndToEnd

Added in 1.1.0
protected Object mEndToEnd

mEndToStart

Added in 1.1.0
protected Object mEndToStart

mHorizontalBias

Added in 1.1.0
protected float mHorizontalBias

mLeftToLeft

Added in 1.1.0
protected Object mLeftToLeft

mLeftToRight

Added in 1.1.0
protected Object mLeftToRight

mMarginBottom

Added in 1.1.0
protected int mMarginBottom

mMarginBottomGone

Added in 1.1.0
protected int mMarginBottomGone

mMarginEnd

Added in 1.1.0
protected int mMarginEnd

mMarginEndGone

Added in 1.1.0
protected int mMarginEndGone

mMarginLeft

Added in 1.1.0
protected int mMarginLeft

mMarginLeftGone

Added in 1.1.0
protected int mMarginLeftGone

mMarginRight

Added in 1.1.0
protected int mMarginRight

mMarginRightGone

Added in 1.1.0
protected int mMarginRightGone

mMarginStart

Added in 1.1.0
protected int mMarginStart

mMarginStartGone

Added in 1.1.0
protected int mMarginStartGone

mMarginTop

Added in 1.1.0
protected int mMarginTop

mMarginTopGone

Added in 1.1.0
protected int mMarginTopGone

mRightToLeft

Added in 1.1.0
protected Object mRightToLeft

mRightToRight

Added in 1.1.0
protected Object mRightToRight

mStartToEnd

Added in 1.1.0
protected Object mStartToEnd

mStartToStart

Added in 1.1.0
protected Object mStartToStart

mTopToBottom

Added in 1.1.0
protected Object mTopToBottom

mTopToTop

Added in 1.1.0
protected Object mTopToTop

mVerticalBias

Added in 1.1.0
protected float mVerticalBias

Public constructors

ConstraintReference

Added in 1.1.0
public ConstraintReference(State state)

Public methods

addCustomColor

Added in 1.1.0
public void addCustomColor(String name, int color)

addCustomFloat

Added in 1.1.0
public void addCustomFloat(String name, float value)

alpha

Added in 1.1.0
public ConstraintReference alpha(float alpha)

apply

Added in 1.1.0
public void apply()

applyWidgetConstraints

Added in 1.1.0
public void applyWidgetConstraints()

apply all the constraints attributes of the mConstraintWidget

baseline

Added in 1.1.0
public ConstraintReference baseline()

baselineToBaseline

Added in 1.1.0
public ConstraintReference baselineToBaseline(Object reference)

baselineToBottom

Added in 1.1.0
public ConstraintReference baselineToBottom(Object reference)

baselineToTop

Added in 1.1.0
public ConstraintReference baselineToTop(Object reference)

bias

Added in 1.1.0
public ConstraintReference bias(float value)

bottom

Added in 1.1.0
public ConstraintReference bottom()

bottomToBottom

Added in 1.1.0
public ConstraintReference bottomToBottom(Object reference)

bottomToTop

Added in 1.1.0
public ConstraintReference bottomToTop(Object reference)

centerHorizontally

Added in 1.1.0
public ConstraintReference centerHorizontally(Object reference)

centerVertically

Added in 1.1.0
public ConstraintReference centerVertically(Object reference)

circularConstraint

Added in 1.1.0
public ConstraintReference circularConstraint(Object reference, float angle, float distance)

clear

Added in 1.1.0
public ConstraintReference clear()

clearAll

Added in 1.1.0
public ConstraintReference clearAll()

Clears all constraints.

clearHorizontal

Added in 1.1.0
public ConstraintReference clearHorizontal()

clearVertical

Added in 1.1.0
public ConstraintReference clearVertical()

createConstraintWidget

Added in 1.1.0
public ConstraintWidget createConstraintWidget()

end

Added in 1.1.0
public ConstraintReference end()

endToEnd

Added in 1.1.0
public ConstraintReference endToEnd(Object reference)

endToStart

Added in 1.1.0
public ConstraintReference endToStart(Object reference)

getAlpha

Added in 1.1.0
public float getAlpha()

getConstraintWidget

Added in 1.1.0
public ConstraintWidget getConstraintWidget()

getFacade

Added in 1.1.0
public Facade getFacade()

getHeight

Added in 1.1.0
public Dimension getHeight()

getHorizontalChainStyle

Added in 1.1.0
public int getHorizontalChainStyle()

getHorizontalChainWeight

Added in 1.1.0
public float getHorizontalChainWeight()

getKey

Added in 1.1.0
public Object getKey()

getPivotX

Added in 1.1.0
public float getPivotX()

getPivotY

Added in 1.1.0
public float getPivotY()

getRotationX

Added in 1.1.0
public float getRotationX()

getRotationY

Added in 1.1.0
public float getRotationY()

getRotationZ

Added in 1.1.0
public float getRotationZ()

getScaleX

Added in 1.1.0
public float getScaleX()

getScaleY

Added in 1.1.0
public float getScaleY()

getTag

Added in 1.1.0
public String getTag()

getTranslationX

Added in 1.1.0
public float getTranslationX()

getTranslationY

Added in 1.1.0
public float getTranslationY()

getTranslationZ

Added in 1.1.0
public float getTranslationZ()

getVerticalChainStyle

Added in 1.1.0
public int getVerticalChainStyle(int chainStyle)

getVerticalChainWeight

Added in 1.1.0
public float getVerticalChainWeight()

getView

Added in 1.1.0
public Object getView()

getWidth

Added in 1.1.0
public Dimension getWidth()

height

Added in 1.1.0
public ConstraintReference height(Dimension dimension)

horizontalBias

Added in 1.1.0
public ConstraintReference horizontalBias(float value)

left

Added in 1.1.0
public ConstraintReference left()

leftToLeft

Added in 1.1.0
public ConstraintReference leftToLeft(Object reference)

leftToRight

Added in 1.1.0
public ConstraintReference leftToRight(Object reference)

margin

Added in 1.1.0
public ConstraintReference margin(Object marginValue)

margin

Added in 1.1.0
public ConstraintReference margin(int value)

marginGone

Added in 1.1.0
public ConstraintReference marginGone(Object marginGoneValue)

marginGone

Added in 1.1.0
public ConstraintReference marginGone(int value)

pivotX

Added in 1.1.0
public ConstraintReference pivotX(float x)

pivotY

Added in 1.1.0
public ConstraintReference pivotY(float y)

right

Added in 1.1.0
public ConstraintReference right()

rightToLeft

Added in 1.1.0
public ConstraintReference rightToLeft(Object reference)

rightToRight

Added in 1.1.0
public ConstraintReference rightToRight(Object reference)

rotationX

Added in 1.1.0
public ConstraintReference rotationX(float x)

rotationY

Added in 1.1.0
public ConstraintReference rotationY(float y)

rotationZ

Added in 1.1.0
public ConstraintReference rotationZ(float z)

scaleX

Added in 1.1.0
public ConstraintReference scaleX(float x)

scaleY

Added in 1.1.0
public ConstraintReference scaleY(float y)

setConstraintWidget

Added in 1.1.0
public void setConstraintWidget(ConstraintWidget widget)

setFacade

Added in 1.1.0
public void setFacade(Facade facade)

setHeight

Added in 1.1.0
public ConstraintReference setHeight(Dimension dimension)

setHorizontalChainStyle

Added in 1.1.0
public void setHorizontalChainStyle(int chainStyle)

setHorizontalChainWeight

Added in 1.1.0
public void setHorizontalChainWeight(float weight)

setKey

Added in 1.1.0
public void setKey(Object key)

setTag

Added in 1.1.0
public void setTag(String tag)

setVerticalChainStyle

Added in 1.1.0
public void setVerticalChainStyle(int chainStyle)

setVerticalChainWeight

Added in 1.1.0
public void setVerticalChainWeight(float weight)

setView

Added in 1.1.0
public void setView(Object view)

setWidth

Added in 1.1.0
public ConstraintReference setWidth(Dimension dimension)

start

Added in 1.1.0
public ConstraintReference start()

startToEnd

Added in 1.1.0
public ConstraintReference startToEnd(Object reference)

startToStart

Added in 1.1.0
public ConstraintReference startToStart(Object reference)

top

Added in 1.1.0
public ConstraintReference top()

topToBottom

Added in 1.1.0
public ConstraintReference topToBottom(Object reference)

topToTop

Added in 1.1.0
public ConstraintReference topToTop(Object reference)

translationX

Added in 1.1.0
public ConstraintReference translationX(float x)

translationY

Added in 1.1.0
public ConstraintReference translationY(float y)

translationZ

Added in 1.1.0
public ConstraintReference translationZ(float z)

validate

Added in 1.1.0
public void validate()

Validate the constraints

verticalBias

Added in 1.1.0
public ConstraintReference verticalBias(float value)

visibility

Added in 1.1.0
public ConstraintReference visibility(int visibility)

width

Added in 1.1.0
public ConstraintReference width(Dimension dimension)