Examples of Size


Examples of com.sencha.gxt.core.client.util.Size

    super.doLayout();
  }

  protected void doLayoutButtonBar() {
    if (buttonBar != null) {
      Size containerSize = getContainerTarget().getStyleSize();
      buttonBar.setWidth(containerSize.getWidth());
    }
  }
View Full Code Here

Examples of com.sencha.gxt.core.client.util.Size

  protected XElement getContainerTarget() {
    return getAppearance().getContentElem(getElement());
  }

  protected Size getFrameSize() {
    return new Size(getAppearance().getFrameWidth(getElement()), getAppearance().getFrameHeight(getElement()));
  }
View Full Code Here

Examples of com.sencha.gxt.core.client.util.Size

    }
  }

  @Override
  protected void onResize(int width, int height) {
    Size frameSize = getFrameSize();
    Size adjustBodySize = adjustBodySize();

    if (isAutoWidth()) {
      getContainerTarget().getStyle().clearWidth();
    } else {
      width -= frameSize.getWidth();

      if (header != null) {
        int aw = width - appearance.getHeaderElem(getElement()).getFrameWidth(Side.LEFT, Side.RIGHT);
        header.setWidth(aw);
      }
      getContainerTarget().setWidth(width - adjustBodySize.getWidth(), true);
    }

    layoutBars();

    // EXTGWT-2773 - Button bar inner frame height
    if (buttonBar != null) {
      appearance.getFooterElem(getElement()).setHeight(buttonBar.getOffsetHeight());
    }

    if (isAutoHeight()) {
      getContainerTarget().getStyle().clearHeight();
    } else {
      height -= frameSize.getHeight();
      height -= headerVisible ? getAppearance().getHeaderSize(getElement()).getHeight() : 0;
      height -= getAppearance().getFooterElem(getElement()).getHeight(false);

      getContainerTarget().setHeight(height - adjustBodySize.getHeight(), true);
    }

    super.onResize(width, height);
  }
View Full Code Here

Examples of com.sun.jna.examples.win32.User32.SIZE

                            int blue = (pixel[0] & 0xFF) << 16;
                            bits[col + row * w] = alpha | red | green | blue;
                        }
                    }
                    pbits.write(0, bits, 0, bits.length);
                    SIZE size = new SIZE();
                    size.cx = w;
                    size.cy = h;
                    POINT srcLoc = new POINT();
                    BLENDFUNCTION blend = new BLENDFUNCTION();
                    POINT loc = new POINT();
View Full Code Here

Examples of com.sun.jna.examples.win32.WinUser.SIZE

                            bits[col] = alpha | red | green | blue;
                        }
                        int v = wh - (origin.y + row) - 1;
                        pbits.write((v*ww+origin.x)*4, bits, 0, bits.length);
                    }
                    SIZE winSize = new SIZE();
                    winSize.cx = win.getWidth();
                    winSize.cy = win.getHeight();
                    POINT winLoc = new POINT();
                    winLoc.x = win.getX();
                    winLoc.y = win.getY();
View Full Code Here

Examples of com.sun.jna.platform.win32.WinUser.SIZE

                            bits[col] = alpha | red | green | blue;
                        }
                        int v = wh - (origin.y + row) - 1;
                        pbits.write((v*ww+origin.x)*4, bits, 0, bits.length);
                    }
                    SIZE winSize = new SIZE();
                    winSize.cx = win.getWidth();
                    winSize.cy = win.getHeight();
                    POINT winLoc = new POINT();
                    winLoc.x = win.getX();
                    winLoc.y = win.getY();
View Full Code Here

Examples of com.sun.star.awt.Size

        return tEnv;
    } // finish method getTestEnvironment

    public static XControlShape createGrid(XComponent oDoc, int height,
                                           int width, int x, int y) {
        Size size = new Size();
        Point position = new Point();
        XControlShape oCShape = null;
        XControlModel aControl = null;

        //get MSF
View Full Code Here

Examples of com.sun.star.awt.Size

            if (xImage != null)
            {
                final XPropertySetInfo xInfo = xImage.getPropertySetInfo();
                if (xInfo.hasPropertyByName("Size100thMM"))
                {
                    Size imageSize = (Size) xImage.getPropertyValue("Size100thMM");
                    dim.setSize(imageSize.Width, imageSize.Height);
                    if (dim.height == 0 && dim.width == 0)
                    {
                        imageSize = (Size) xImage.getPropertyValue("SizePixel");
                        final int dpi = java.awt.Toolkit.getDefaultToolkit().getScreenResolution();
                        final double fac = 2540 / dpi;
                        dim.setSize(imageSize.Width * fac, imageSize.Height * fac);
                    }
                }
                else if (xInfo.hasPropertyByName("SizePixel"))
                {
                    final Size imageSize = (Size) xImage.getPropertyValue("SizePixel");
                    final int dpi = java.awt.Toolkit.getDefaultToolkit().getScreenResolution();
                    final double fac = 2540 / dpi;
                    dim.setSize(imageSize.Width * fac, imageSize.Height * fac);
                }
            }
View Full Code Here

Examples of com.sun.star.awt.Size

        TextStyleHandler oTextStyleSupplier = new TextStyleHandler(xMSFDoc, xTextDocument);
        Helper.setUnoPropertyValue(xTextDocument, "ApplyFormDesignMode", Boolean.FALSE);
        oViewHandler.setViewSetting("ShowTableBoundaries", Boolean.FALSE);
        oViewHandler.setViewSetting("ShowOnlineLayout", Boolean.TRUE);
        xPropPageStyle = oTextStyleSupplier.getStyleByName("PageStyles", "Standard");
        Size aSize = oTextStyleHandler.changePageAlignment(xPropPageStyle, true);
        nPageWidth = aSize.Width;
        nPageHeight = aSize.Height;
        sMsgEndAutopilot = oResource.getResText(UIConsts.RID_DB_COMMON + 33);
    } catch (Exception e) {
        e.printStackTrace(System.out);
View Full Code Here

Examples of com.sun.star.awt.Size

            else{
                totfieldcount = getTotFieldCount();
                nMainFormHeight = (int) (((double) nMainFormFieldCount/(double) totfieldcount) * ((double)(nFormHeight-SOFORMGAP)/2));
            }
        }
        Size aMainFormSize = new Size(nFormWidth, nMainFormHeight);
        MainFormStandardHeight = nMainFormHeight;
        return aMainFormSize;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.