public class Chain


Chain management and constraints creation

Summary

Constants

static final boolean

Public constructors

Public methods

static void
applyChainConstraints(
    ConstraintWidgetContainer constraintWidgetContainer,
    LinearSystem system,
    ArrayList<ConstraintWidget> widgets,
    int orientation
)

Apply specific rules for dealing with chains of widgets.

Constants

USE_CHAIN_OPTIMIZATION

Added in 1.1.0
public static final boolean USE_CHAIN_OPTIMIZATION = false

Public constructors

Chain

Added in 1.1.0
public Chain()

Public methods

applyChainConstraints

Added in 1.1.0
public static void applyChainConstraints(
    ConstraintWidgetContainer constraintWidgetContainer,
    LinearSystem system,
    ArrayList<ConstraintWidget> widgets,
    int orientation
)

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

LinearSystem system

the linear system we add the equations to

int orientation

HORIZONTAL or VERTICAL