Class Chain


  • public class Chain
    extends java.lang.Object
    Chain management and constraints creation
    • Field Detail

      • USE_CHAIN_OPTIMIZATION

        public static final boolean USE_CHAIN_OPTIMIZATION
        See Also:
        Constant Field Values
    • Constructor Detail

      • Chain

        public Chain()
    • Method Detail

      • applyChainConstraints

        public static void applyChainConstraints​(ConstraintWidgetContainer constraintWidgetContainer,
                                                 LinearSystem system,
                                                 java.util.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 - root container
        system - the linear system we add the equations to
        orientation - HORIZONTAL or VERTICAL