Package org.eclipse.wb.draw2d.geometry

Examples of org.eclipse.wb.draw2d.geometry.Insets


            "  }",
            "}");
    fieldSet.refresh();
    ComponentInfo button = getJavaInfoByName("button");
    //
    Insets insets = fieldSet.getClientAreaInsets();
    Rectangle buttonParentBounds = button.getBounds();
    Rectangle buttonModelBounds = button.getModelBounds();
    assertEquals(buttonParentBounds.x, buttonModelBounds.x + insets.left);
    assertEquals(buttonParentBounds.y, buttonModelBounds.y + insets.top);
  }
View Full Code Here


            "    }",
            "  }",
            "}");
    panel.refresh();
    // check insets
    Insets insets = panel.getClientAreaInsets();
    Insets expected =
        Expectations.get(new Insets(48, 1, 23, 1), new InsValue[]{
            new InsValue("Flanker-Windows", new Insets(48, 1, 23, 1)),
            new InsValue("SABLIN-AA", new Insets(46, 1, 23, 1))});
    assertEquals(expected, insets);
  }
View Full Code Here

            "    setHeading('New FieldSet');",
            "  }",
            "}");
    fieldSet.refresh();
    // check insets
    Insets insets = fieldSet.getClientAreaInsets();
    assertEquals(new Insets(24, 11, 12, 11), insets);
  }
View Full Code Here

            "    setCollapsible(true);",
            "  }",
            "}");
    fieldSet.refresh();
    // check insets
    Insets insets = fieldSet.getClientAreaInsets();
    assertEquals(new Insets(26, 11, 12, 11), insets);
  }
View Full Code Here

  }

  public Dimension getContainerSize() {
    ContainerInfo container = m_layout.getContainer();
    Dimension size = container.getModelBounds().getSize();
    Insets insets = container.getClientAreaInsets();
    return new Dimension(size.width - insets.getWidth(), size.height - insets.getHeight());
  }
View Full Code Here

  // Feedbacks
  //
  ////////////////////////////////////////////////////////////////////////////
  @Override
  protected void addFeedbacks() throws Exception {
    addFeedback(0, 0, 1, 0.25, new Insets(0, 0, 1, 0), "North", "NORTH");
    addFeedback(0, 0.75, 1, 1, new Insets(1, 0, 0, 0), "South", "SOUTH");
    addFeedback(0, 0.25, 0.25, 0.75, new Insets(1, 0, 1, 1), "West", "WEST");
    addFeedback(0.75, 0.25, 1, 0.75, new Insets(1, 1, 1, 0), "East", "EAST");
    addFeedback(0.25, 0.25, 0.75, 0.75, new Insets(1, 1, 1, 1), "Center", "CENTER");
  }
View Full Code Here

  //
  ////////////////////////////////////////////////////////////////////////////
  @Override
  protected void addFeedbacks() throws Exception {
    if (!m_panel.hasTopComponent()) {
      addFeedback(0.0, 0, 0.5, 15, new Insets(0, 0, 0, 1), "Top", "Top");
    }
    if (!m_panel.hasBottomComponent()) {
      addFeedback(0.5, 0, 1.0, 15, new Insets(0, 1, 0, 0), "Bottom", "Bottom");
    }
  }
View Full Code Here

    return AbsolutePolicyUtils.DEFAULT_CONTAINER_GAP;
  }

  public Dimension getContainerSize() {
    Dimension size = m_form.getModelBounds().getSize().getCopy();
    Insets insets = m_form.getClientAreaInsets();
    return size.shrink(insets.getWidth(), insets.getHeight());
  }
View Full Code Here

  }

  public Dimension getContainerSize() {
    ContainerInfo container = m_layout.getContainer();
    Dimension size = container.getModelBounds().getSize().getCopy();
    Insets insets = container.getClientAreaInsets();
    return size.shrink(insets.getWidth(), insets.getHeight());
  }
View Full Code Here

  /**
   * @return the children tabs insets size.
   */
  public Insets getTabInsets() {
    return new Insets(5, 5, 5, 5);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.wb.draw2d.geometry.Insets

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.