Package org.gwt.mosaic.core.client

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


   *
   * @param x an int array of the horizontal origins
   * @param y an int array of the vertical origins
   */
  private void layoutComponents(LayoutPanel layoutPanel, int[] x, int[] y) {
    Rectangle cellBounds = new Rectangle();
    for (Iterator<Map.Entry<Widget, CellConstraints>> i = constraintMap.entrySet().iterator(); i.hasNext();) {
      Map.Entry<Widget, CellConstraints> entry = i.next();
      Widget component = entry.getKey();
      CellConstraints constraints = entry.getValue();

View Full Code Here


    }

    final DesktopPanel d = w.getDesktopPanel();
    final int[] borders = DOM.getBorderSizes(d.getElement());

    final Rectangle r = w.getNormalBounds();

    if (w.isCollapsed()) {
      r.x = w.getAbsoluteLeft() - borders[3] - d.getAbsoluteLeft();
      r.y = w.getAbsoluteTop() - borders[0] - d.getAbsoluteTop();
      w.setNormalBounds(r);
View Full Code Here

   * @param w the {@link WindowPanel} to be restored
   */
  public void restore(WindowPanel w, WindowState oldWindowState) {
    if (w.isResizable() && oldWindowState == WindowState.MAXIMIZED) {
      final DesktopPanel d = w.getDesktopPanel();
      final Rectangle r = w.getNormalBounds();
      if (w.isCollapsed()) {
        w.setPopupPosition(r.x, r.y);
        w.setContentSize(r.width, -1);
      } else {
        w.setPopupPosition(r.x, r.y);
View Full Code Here

   *
   * @param x an int array of the horizontal origins
   * @param y an int array of the vertical origins
   */
  private void layoutComponents(LayoutPanel layoutPanel, int[] x, int[] y) {
    Rectangle cellBounds = new Rectangle();
    for (Iterator<Map.Entry<Widget, CellConstraints>> i = constraintMap.entrySet().iterator(); i.hasNext();) {
      Map.Entry<Widget, CellConstraints> entry = i.next();
      Widget component = entry.getKey();
      CellConstraints constraints = entry.getValue();

View Full Code Here

TOP

Related Classes of org.gwt.mosaic.core.client.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.