Package com.extjs.gxt.ui.client.util

Examples of com.extjs.gxt.ui.client.util.Rectangle


  }

  @Override
  protected void handleMouseEvent(TreeEvent ce) {
    TreeTableItemUI treeUI = (TreeTableItemUI) item.getUI();
    Rectangle rect = item.el().firstChild().getBounds();
    if (rect.contains(ce.getClientX(), ce.getClientY())) {
      if (!treeUI.hovering) {
        treeUI.hovering = true;
        treeUI.onMouseOver(ce);
      }
    } else {
View Full Code Here


  @Override
  protected void onLayout(Container container, El target) {
    super.onLayout(container, target);

    Size size = target.getStyleSize();
    Rectangle rect = target.getBounds(true);
    rect.width = size.width;
    rect.height = size.height;

    int w = rect.width, h = rect.height;
View Full Code Here

    sinkEvents(Event.MOUSEEVENTS);
  }

  protected void onShowPanel(ContentPanel panel) {
    this.expanded = true;
    Rectangle box = getBounds(false);

    SplitBar bar = (SplitBar) panel.getData("splitBar");
    if (bar != null) {
      bar.disable();
    }
View Full Code Here

    }
  }

  @Override
  protected void onBlur(final ComponentEvent ce) {
    Rectangle rec = trigger.getBounds();
    if (rec.contains(BaseEventPreview.getLastXY())) {
      ce.stopEvent();
      return;
    }
    if (expanded) {
      rec = list.el().getBounds();
      if (rec.contains(BaseEventPreview.getLastXY())) {
        ce.stopEvent();
        return;
      }
    }
    hasFocus = false;
View Full Code Here

      width -= El.fly(elem).getFrameWidth("lr");
      height -= El.fly(elem).getFrameWidth("tb");
    }
    width = Math.max(0, width);
    height = Math.max(0, height);
    return new Rectangle(x, y, width, height);
  }
View Full Code Here

    if (dragging) {
      dragging = false;
      if (isUseProxy()) {
        if (isMoveAfterProxyDrag()) {
          Rectangle rect = proxyEl.getBounds();
          dragWidget.el().setPagePosition(rect.x, rect.y);
        }
        proxyEl.disableTextSelection(false);
        Element body = XDOM.getBody();
        DOM.removeChild(body, proxyEl.dom);
View Full Code Here

   *          page coordinates
   * @return the element's bounds
   */
  public Rectangle getBounds(boolean local) {
    Size s = getSize();
    Rectangle rect = new Rectangle();
    rect.width = s.width;
    rect.height = s.height;
    if (local) {
      rect.x = getLeft(true);
      rect.y = getTop(true);
View Full Code Here

   * Returns the element's content area bounds.
   *
   * @return the bounds
   */
  public Rectangle getLayoutBounds() {
    Rectangle r = getBounds();
    r.width -= getFrameWidth("lr");
    r.height -= getFrameWidth("tb");
    return r;
  }
View Full Code Here

   * DOM tree to have a region.
   *
   * @return a region containing top, left, bottom, right
   */
  public Region getRegion() {
    Rectangle bounds = getBounds();
    Region r = new Region();
    r.left = bounds.x;
    r.top = bounds.y;
    r.right = r.left + bounds.width;
    r.bottom = r.top + bounds.height;
View Full Code Here

    wrap.setTop(t);

    setTop(0);
    setLeft(0);

    return new Rectangle(l, t, w, h);
  }
View Full Code Here

TOP

Related Classes of com.extjs.gxt.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.