Class Chain
- java.lang.Object
-
- androidx.constraintlayout.core.dsl.Helper
-
- androidx.constraintlayout.core.dsl.Chain
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classChain.Anchorstatic classChain.Style-
Nested classes/interfaces inherited from class androidx.constraintlayout.core.dsl.Helper
Helper.HelperType, Helper.Type
-
-
Constructor Summary
Constructors Constructor Description Chain(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChainaddReference(Ref ref)Add a new referenceChainaddReference(java.lang.String ref)Add a new referenceChain.StylegetStyle()java.lang.StringreferencesToString()convert references to a String representationvoidsetStyle(Chain.Style style)
-
-
-
Field Detail
-
references
protected java.util.ArrayList<Ref> references
-
styleMap
protected static final java.util.Map<Chain.Style,java.lang.String> styleMap
-
-
Method Detail
-
getStyle
public Chain.Style getStyle()
-
setStyle
public void setStyle(Chain.Style style)
-
referencesToString
public java.lang.String referencesToString()
convert references to a String representation- Returns:
- a String representation of references
-
addReference
public Chain addReference(Ref ref)
Add a new reference- Parameters:
ref- reference- Returns:
- Chain
-
addReference
public Chain addReference(java.lang.String ref)
Add a new reference- Parameters:
ref- reference in a String representation- Returns:
- Chain
-
-