Package org.eclipse.wb.draw2d.geometry

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


      }
      return;
    }
    // no anchor yet, generate LEADING and convert
    if (anchor != Anchor.NONE) {
      command_LOCATION_X(widget, bounds.left());
      command_SIZE_X(widget, bounds.width, ResizeDirection.TRAILING);
      if (anchor == Anchor.TRAILING) {
        command_ANCHOR_horizontal(widget, anchor);
      }
      if (anchor == Anchor.BOTH) {
View Full Code Here


    Rectangle bounds_1 = bar.getItems().get(0).getBounds();
    Rectangle bounds_2 = bar.getItems().get(2).getBounds();
    // check "fill" bounds
    ComponentInfo fillItem = bar.getItems().get(1);
    Rectangle bounds = fillItem.getBounds();
    assertThat(bounds.left()).isEqualTo(bounds_1.right());
    assertThat(bounds.right()).isEqualTo(bounds_2.left());
  }

  /**
   * Test for using <code>com.extjs.gxt.ui.client.widget.toolbar.FillToolItem</code>.
View Full Code Here

    // prepare bounds for prev/next items
    Rectangle bounds_2 = bar.getItems().get(1).getBounds();
    // check "fill" bounds
    ComponentInfo fillItem = bar.getItems().get(0);
    Rectangle bounds = fillItem.getBounds();
    assertThat(bounds.left()).isEqualTo(0);
    assertThat(bounds.right()).isEqualTo(bounds_2.left());
  }

  /**
   * Test for using <code>com.extjs.gxt.ui.client.widget.toolbar.FillToolItem</code>.
View Full Code Here

    // prepare bounds for prev/next items
    Rectangle bounds_1 = bar.getItems().get(0).getBounds();
    // check "fill" bounds
    ComponentInfo fillItem = bar.getItems().get(1);
    Rectangle bounds = fillItem.getBounds();
    assertThat(bounds.left()).isEqualTo(bounds_1.right());
    assertThat(bounds.right()).isEqualTo(bar.getBounds().width);
  }
}
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.