Examples of bottom()


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

        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

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

    // BottomHeight
    {
      MethodInvocation invocation = getWidgetInvocation(widget, "setWidgetBottomHeight");
      if (invocation != null) {
        if (direction == ResizeDirection.TRAILING) {
          int oldBottom = getBounds().height - bounds.bottom();
          int deltaHeight = height - bounds.height;
          int bottom = oldBottom - deltaHeight;
          setInvocationArgument(invocation, 1, bottom, false);
        }
        setInvocationArgument(invocation, 3, height, false);
View Full Code Here

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

          int deltaHeight = height - bounds.height;
          int top = oldTop - deltaHeight;
          setInvocationArgument(invocation, 1, top, false);
        }
        if (direction == ResizeDirection.TRAILING) {
          int oldBottom = getBounds().height - bounds.bottom();
          int deltaHeight = height - bounds.height;
          int bottom = oldBottom - deltaHeight;
          setInvocationArgument(invocation, 3, bottom, false);
        }
        return;
View Full Code Here

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

  private void command_ANCHOR_vertical(WidgetInfo widget, Anchor anchor) throws Exception {
    MethodInvocation invocation;
    Rectangle bounds = widget.getBounds();
    AstEditor editor = getEditor();
    if ((invocation = getWidgetInvocation(widget, "setWidgetTopHeight")) != null) {
      int bottom = getBounds().height - bounds.bottom();
      if (anchor == Anchor.NONE) {
        editor.removeEnclosingStatement(invocation);
      }
      if (anchor == Anchor.TRAILING) {
        editor.replaceInvocationName(invocation, "setWidgetBottomHeight");
View Full Code Here

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

      @Override
      protected void paintClientArea(Graphics graphics) {
        Rectangle r = getClientArea();
        // draw rectangle
        graphics.setForegroundColor(IColorConstants.buttonDarker);
        graphics.drawLine(r.x, r.y, r.x, r.bottom());
        graphics.drawLine(r.right() - 1, r.y, r.right() - 1, r.bottom());
        // draw column index
        int titleLeft;
        {
          String title = "" + getIndex();
View Full Code Here

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

      protected void paintClientArea(Graphics graphics) {
        Rectangle r = getClientArea();
        // draw rectangle
        graphics.setForegroundColor(IColorConstants.buttonDarker);
        graphics.drawLine(r.x, r.y, r.x, r.bottom());
        graphics.drawLine(r.right() - 1, r.y, r.right() - 1, r.bottom());
        // draw column index
        int titleLeft;
        {
          String title = "" + getIndex();
          Dimension textExtents = graphics.getTextExtent(title);
View Full Code Here

Examples of org.xhtmlrenderer.css.style.derived.BorderPropertySet.bottom()

        BorderPropertySet border = iB.getBorder(c);
       
        result.setPaintingTop((int)Math.floor(iB.getY() - border.top() - padding.top()));
        result.setPaintingBottom((int)Math.ceil(iB.getY() +
                fm.getAscent() + fm.getDescent() +
                border.bottom() + padding.bottom()));

        return result;
    }
   
    public static List calculateTextDecorations(Box box, int baseline,
View Full Code Here

Examples of org.xhtmlrenderer.css.style.derived.RectPropertySet.bottom()

        BorderPropertySet border = iB.getBorder(c);
       
        result.setPaintingTop((int)Math.floor(iB.getY() - border.top() - padding.top()));
        result.setPaintingBottom((int)Math.ceil(iB.getY() +
                fm.getAscent() + fm.getDescent() +
                border.bottom() + padding.bottom()));

        return result;
    }
   
    public static List calculateTextDecorations(Box box, int baseline,
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.