Package net.mygwt.ui.client.util

Examples of net.mygwt.ui.client.util.Rectangle


    south = getRegionWidget(Style.SOUTH);
    west = getRegionWidget(Style.WEST);
    east = getRegionWidget(Style.EAST);
    center = getRegionWidget(Style.CENTER);

    Rectangle rect = MyDOM.getBounds(ct, true);

    if (!MyDOM.isVisibleBox()) {
      rect.width -= 1;
      rect.height -= 1;
    }
View Full Code Here


  public Widget topWidget;

  protected void onLayout(Container container, Element target) {
    super.onLayout(container, target);

    Rectangle rect = MyDOM.getBounds(target, true);

    int size = container.getWidgetCount();
    for (int i = 0; i < size; i++) {
      Widget child = (Widget) container.getWidget(i);
      child.setVisible(topWidget == child);
View Full Code Here

    if (dragging) {
      DOM.removeEventPreview(preview);
      dragging = false;
      if (useProxy) {
        if (moveAfterProxyDrag) {
          Rectangle rect = MyDOM.getBounds(proxyElem, false);
          MyDOM.setLocation(dragWidget.getElement(), rect.x, rect.y);
        }
        Element body = MyDOM.getBody();
        DOM.removeChild(body, proxyElem);
        proxyElem = null;
View Full Code Here

   * @param width the new width
   * @param height the new height
   */
  public void setBounds(int x, int y, int width, int height) {
    if (!isAttached()) {
      attachBounds = new Rectangle(x, y, width, height);
      return;
    }

    MyDOM.setBounds(elem, x, y, width, height, true);

View Full Code Here

  public void handleEvent(BaseEvent be) {
    x = be.getClientX();
    y = be.getClientY();

    Rectangle rect = MyDOM.getBounds(source.getElement());

    if (rect.contains(x, y)) {
      if (!hovering) {
        onMouseOver(be);
      }
    } else {
      onMouseOut(be);
View Full Code Here

      setStyleName("my-ie-shadow");
    } else {
      setElement(MyDOM.create(Markup.SHADOW));
    }

    adjusts = new Rectangle();
    int radius = offset / 2;

    switch (style) {
      case Style.SIDES:
        adjusts.width = offset * 2;
 
View Full Code Here

  public void updateHandle() {
    if (!resizeWidget.isAttached()) {
      return;
    }
    Rectangle rect = MyDOM.getBounds(resizeElem, false);
    int x = rect.x;
    int y = rect.y;

    if (!MyDOM.isVisibleBox()) {
      y -= MyDOM.getDecorationWidth(resizeElem, Style.TOP);
View Full Code Here

          be.width = w;
          break;
      }
    }

    startBounds = new Rectangle();
    startBounds.y = be.getClientY();
    startBounds.x = be.getClientX();

    boolean v = style == Style.WEST || style == Style.EAST;
    int size;
View Full Code Here

TOP

Related Classes of net.mygwt.ui.client.util.Rectangle

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.