Package linearProgramming

Examples of linearProgramming.Constraint


   * @param column
   *            the column that should have the same width
   * @return the resulting same-width constraint
   */
  public Constraint hasSameWidthAs(Column column) throws LinearProgrammingException {
    Constraint c = ls.addConstraint(-1, left, 1, right, 1, column.left, -1,
        column.right, OperatorType.EQ, 0);
    c.Owner = this;
    constraints.add(c);
    return c;
  }
View Full Code Here


   * @param row
   *            the row that should have the same height
   * @return the resulting same-height constraint
   */
  public Constraint hasSameHeightAs(Row row) throws Exception {
    Constraint c = ls.addConstraint(-1, top, 1, bottom, 1, row.top, -1,
        row.bottom, OperatorType.EQ, 0);
    c.Owner = this;
    constraints.add(c);
    return c;
  }
View Full Code Here

TOP

Related Classes of linearProgramming.Constraint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.