Package org.eclipse.wb.draw2d.geometry

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


          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

  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

      @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

      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

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

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

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

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

      @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 = "" + (1 + m_dimension.getIndex());
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.