Package net.mygwt.ui.client.util

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


      int h = getHeight(elem);

      int dw = Window.getClientWidth() - 5;
      int dh = Window.getClientHeight() - 5;

      Region r = getRegion(elem);

      char p1y = p1.charAt(0), p1x = p1.charAt(p1.length() - 1);
      char p2y = p2.charAt(0), p2x = p2.charAt(p2.length() - 1);
      boolean swapY = ((p1y == 't' && p2y == 'b') || (p1y == 'b' && p2y == 't'));
      boolean swapX = ((p1x == 'r' && p2x == 'l') || (p1x == 'l' && p2x == 'r'));
View Full Code Here


   * @param elem the element
   * @return a region containing top, left, bottom, right
   */
  public static Region getRegion(Element elem) {
    Rectangle bounds = getBounds(elem, false);
    Region r = new Region();
    r.left = bounds.x;
    r.top = bounds.y;
    r.right = r.left + bounds.width;
    r.bottom = r.top + bounds.height;
    return r;
View Full Code Here

TOP

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

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.