Examples of bottom()


Examples of org.eclipse.swt.graphics.Rectangle.bottom()

        f = -Float.parseFloat(h);
        f *= ref.height;
        n = Math.round(f);
      }
     
      rt.bottom(rt.top());
      rt.top(rt.bottom() - n);
    } else {
      try {
        n = Integer.parseInt(h);
      } catch (NumberFormatException ex) {
View Full Code Here

Examples of org.eclipse.wb.draw2d.geometry.Rectangle.bottom()

      Rectangle panelBounds = getAbsoluteBounds(getObject());
      Object body = ReflectionUtils.invokeMethod(getObject(), "getBody()");
      Rectangle bodyBounds = getAbsoluteBounds(body);
      setClientAreaInsets(new Insets(bodyBounds.y - panelBounds.y,
          bodyBounds.x - panelBounds.x,
          panelBounds.bottom() - bodyBounds.bottom(),
          panelBounds.right() - bodyBounds.right()));
    }
  }

  private static Rectangle getAbsoluteBounds(Object boxObject) throws Exception {
View Full Code Here

Examples of org.eclipse.wb.draw2d.geometry.Rectangle.bottom()

      Rectangle panelBounds = GxtUtils.getAbsoluteBounds(panelEl);
      Rectangle bodyBounds = GxtUtils.getAbsoluteBounds(bodyEl);
      Insets insets =
          new Insets(bodyBounds.y - panelBounds.y,
              bodyBounds.x - panelBounds.x,
              panelBounds.bottom() - bodyBounds.bottom(),
              panelBounds.right() - bodyBounds.right());
      insets.add(m_margins);
      insets.add(GxtUtils.getBorders(bodyEl));
      setClientAreaInsets(insets);
    }
View Full Code Here

Examples of org.eclipse.wb.draw2d.geometry.Rectangle.bottom()

        TableLayoutDataInfo tableData = getTableData(widget);
        cells = new Rectangle(tableData.x, tableData.y, tableData.width, tableData.height);
      }
      // fill grid cells
      for (int x = cells.x; x < cells.right(); x++) {
        for (int y = cells.y; y < cells.bottom(); y++) {
          // ignore newly added widgets without real cell
          if (x != -1 && y != -1) {
            grid[y][x] = widget;
          }
        }
View Full Code Here

Examples of org.eclipse.wb.draw2d.geometry.Rectangle.bottom()

    Rectangle panelBounds = GxtUtils.getAbsoluteBounds(panelEl);
    Rectangle bodyBounds = GxtUtils.getAbsoluteBounds(bodyEl);
    {
      int top = bodyBounds.y - panelBounds.y;
      int left = bodyBounds.x - panelBounds.x;
      int bottom = panelBounds.bottom() - bodyBounds.bottom();
      int right = panelBounds.right() - bodyBounds.right();
      /*if (bottom < 0) {
        bottom *= -1;
      }*/
      setClientAreaInsets(new Insets(top, left, bottom, right));
View Full Code Here

Examples of org.eclipse.wb.draw2d.geometry.Rectangle.bottom()

      return;
    }
    // BottomHeight
    if (location.trailing != null && location.size != null) {
      if (direction == ResizeDirection.TRAILING) {
        int oldBottom = getBounds().height - bounds.bottom();
        int deltaHeight = height - bounds.height;
        int bottom = oldBottom - deltaHeight;
        setPixels(location.trailing, bottom);
      }
      setPixels(location.size, height);
View Full Code Here

Examples of org.eclipse.wb.draw2d.geometry.Rectangle.bottom()

        int deltaHeight = height - bounds.height;
        int top = oldTop - deltaHeight;
        setPixels(location.leading, top);
      }
      if (direction == ResizeDirection.TRAILING) {
        int oldBottom = getBounds().height - bounds.bottom();
        int deltaHeight = height - bounds.height;
        int bottom = oldBottom - deltaHeight;
        setPixels(location.trailing, bottom);
      }
      return;
View Full Code Here

Examples of org.eclipse.wb.draw2d.geometry.Rectangle.bottom()

      if (anchor == Anchor.NONE) {
        layer.setAttribute("top", null);
        layer.setAttribute("height", null);
      }
      if (anchor == Anchor.TRAILING) {
        int bottom = getBounds().height - bounds.bottom();
        layer.setAttribute("top", null);
        setPixels(location.leading, "bottom", bottom);
      }
      if (anchor == Anchor.BOTH) {
        int bottom = getBounds().height - bounds.bottom();
View Full Code Here

Examples of org.eclipse.wb.draw2d.geometry.Rectangle.bottom()

        int bottom = getBounds().height - bounds.bottom();
        layer.setAttribute("top", null);
        setPixels(location.leading, "bottom", bottom);
      }
      if (anchor == Anchor.BOTH) {
        int bottom = getBounds().height - bounds.bottom();
        layer.setAttribute("height", null);
        setPixels(location.leading, "bottom", bottom);
      }
      return;
    }
View Full Code Here

Examples of org.eclipse.wb.draw2d.geometry.Rectangle.bottom()

      if (anchor == Anchor.LEADING) {
        layer.setAttribute("top", bounds.top() + "px");
        layer.setAttribute("height", bounds.height + "px");
      }
      if (anchor == Anchor.TRAILING) {
        layer.setAttribute("bottom", getBounds().height - bounds.bottom() + "px");
        layer.setAttribute("height", bounds.height + "px");
      }
      if (anchor == Anchor.BOTH) {
        layer.setAttribute("top", bounds.top() + "px");
        layer.setAttribute("bottom", getBounds().height - bounds.bottom() + "px");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.