class Chain


Chain management and constraints creation

Summary

Constants

const Boolean

Public constructors

Public functions

java-static Unit
applyChainConstraints(
    constraintWidgetContainer: ConstraintWidgetContainer!,
    system: LinearSystem!,
    widgets: ArrayList<ConstraintWidget!>!,
    orientation: Int
)

Apply specific rules for dealing with chains of widgets.

Constants

USE_CHAIN_OPTIMIZATION

Added in 1.1.0
const val USE_CHAIN_OPTIMIZATION = false: Boolean

Public constructors

Chain

Added in 1.1.0
Chain()

Public functions

applyChainConstraints

Added in 1.1.0
java-static fun applyChainConstraints(
    constraintWidgetContainer: ConstraintWidgetContainer!,
    system: LinearSystem!,
    widgets: ArrayList<ConstraintWidget!>!,
    orientation: Int
): Unit

Apply specific rules for dealing with chains of widgets. Chains are defined as a list of widget linked together with bi-directional connections

Parameters
constraintWidgetContainer: ConstraintWidgetContainer!

root container

system: LinearSystem!

the linear system we add the equations to

orientation: Int

HORIZONTAL or VERTICAL