Package org.jamesii.gui.utils.SimpleFormLayout

Examples of org.jamesii.gui.utils.SimpleFormLayout.FormConstraint


  @Override
  public void addLayoutComponent(Component comp, Object constraints) {
    if (constraints == null || !(constraints instanceof FormConstraint)) {
      constraints = FormConstraint.cellXY(0, gridHeight);
    }
    FormConstraint c = (FormConstraint) constraints;
    resizeGridToFit(c.x + c.width, c.y + c.height);
    gridWidth = Math.max(c.x + c.width, gridWidth);
    gridHeight = Math.max(c.y + c.height, gridHeight);
    grid[c.x][c.y] = new GridElement(c, comp);
    columns = getColumnSizes();
View Full Code Here


     *          the row in the grid
     *
     * @return constraint object pointing to specified cell
     */
    public static FormConstraint cellXY(int x, int y) {
      return new FormConstraint(x, y, NORTH_WEST, -1, 1, 1);
    }
View Full Code Here

     * @see FormConstraint#NORTH_EAST
     * @see FormConstraint#SOUTH_WEST
     * @see FormConstraint#SOUTH_EAST
     */
    public static FormConstraint cellXY(int x, int y, int anchor) {
      return new FormConstraint(x, y, anchor, -1, 1, 1);
    }
View Full Code Here

     * @see FormConstraint#HORIZONTAL
     * @see FormConstraint#VERTICAL
     * @see FormConstraint#BOTH
     */
    public static FormConstraint cellXY(int x, int y, int anchor, int fill) {
      return new FormConstraint(x, y, anchor, fill, 1, 1);
    }
View Full Code Here

     * @see FormConstraint#VERTICAL
     * @see FormConstraint#BOTH
     */
    public static FormConstraint cellXY(int x, int y, int anchor, int fill,
        int width, int height) {
      return new FormConstraint(x, y, anchor, fill, width, height);
    }
View Full Code Here

TOP

Related Classes of org.jamesii.gui.utils.SimpleFormLayout.FormConstraint

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.