Package org.gwt.mosaic.core.client

Examples of org.gwt.mosaic.core.client.Point


    return moveDragController;
  }

  public Point getPopupPosition(WindowPanel windowPanel) {
    final int[] borders = DOM.getBorderSizes(getElement());
    return new Point(windowPanel.getAbsoluteLeft()
        - (getAbsoluteLeft() + borders[3]), windowPanel.getAbsoluteTop()
        - (getAbsoluteTop() + borders[0]));
  }
View Full Code Here


    final Dimension box = DOM.getClientSize(getElement());
    for (int i = 0, n = windowPanels.size(); i < n; i++) {
      final WindowPanel w = windowPanels.get(i);
      final Dimension d = WidgetHelper.getOffsetSize(w);

      final Point p = getPopupPosition(w);

      p.x -= Math.max(0, (p.x + w.getOffsetWidth()) - box.width);
      p.y -= Math.max(0, (p.y + w.getOffsetHeight()) - box.height);

      w.setPopupPosition(Math.max(0, p.x), Math.max(0, p.y));
View Full Code Here

      if (clientSize.height == -1) {
        clientSize.height = getPreferredSize(layoutPanel, child, layoutData).height;
      }

      Point point = new Point(layoutPanel.toPixelSize(layoutData.left, true),
          layoutPanel.toPixelSize(layoutData.top, false));

      int fw = clientSize.width;
      int fh = clientSize.height;
View Full Code Here

TOP

Related Classes of org.gwt.mosaic.core.client.Point

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.