Examples of computeTrim()


Examples of com.google.gdt.eclipse.designer.hosted.IBrowserShell.computeTrim()

    // prepare Shell
    IBrowserShell shell = state.getShell();
    shell.prepare();
    // set Shell size
    {
      Rectangle shellBounds = shell.computeTrim(0, 0, size.width, size.height);
      shell.setSize(shellBounds.width, shellBounds.height);
    }
  }

  @Override
View Full Code Here

Examples of com.google.gdt.eclipse.designer.hosted.IBrowserShell.computeTrim()

    // prepare Shell
    IBrowserShell shell = state.getShell();
    shell.prepare();
    // set Shell size
    {
      Rectangle shellBounds = shell.computeTrim(0, 0, size.width, size.height);
      if (state.isStrictMode() && !state.isBrowserWebKit()) {
        shellBounds.width += SIZE_EXPAND;
        shellBounds.height += SIZE_EXPAND;
      }
      shell.setSize(shellBounds.width, shellBounds.height);
View Full Code Here

Examples of com.google.gdt.eclipse.designer.hosted.IBrowserShell.computeTrim()

    afterApply();
    // set Shell size
    IBrowserShell shell = m_widget.getState().getShell();
    shell.prepare();
    org.eclipse.swt.graphics.Rectangle shellBounds =
        shell.computeTrim(0, 0, size.width, size.height);
    shell.setSize(shellBounds.width + SIZE_EXPAND, shellBounds.height + SIZE_EXPAND);
  }

  private void doApply(Dimension resourceSize) throws Exception {
    if (!isSizeAlreadySet()) {
View Full Code Here

Examples of com.google.gdt.eclipse.designer.hosted.IBrowserShell.computeTrim()

    // prepare Shell
    IBrowserShell shell = state.getShell();
    shell.prepare();
    // set Shell size
    {
      Rectangle shellBounds = shell.computeTrim(0, 0, size.width, size.height);
      shell.setSize(shellBounds.width, shellBounds.height);
    }
  }

  @Override
View Full Code Here

Examples of com.google.gdt.eclipse.designer.hosted.IBrowserShell.computeTrim()

    afterApply();
    // set Shell size
    IBrowserShell shell = m_widget.getState().getShell();
    shell.prepare();
    org.eclipse.swt.graphics.Rectangle shellBounds =
        shell.computeTrim(0, 0, size.width, size.height);
    shell.setSize(shellBounds.width + SIZE_EXPAND, shellBounds.height + SIZE_EXPAND);
  }

  private void doApply(Dimension resourceSize) throws Exception {
    applySizeUsingScript(resourceSize);
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlExtension3.computeTrim()

    IInformationControl informationControl= getInformationControl();
   
    Rectangle controlBounds= fContentBounds;
    if (informationControl instanceof IInformationControlExtension3) {
      IInformationControlExtension3 iControl3= (IInformationControlExtension3) informationControl;
      Rectangle trim= iControl3.computeTrim();
      controlBounds= Geometry.add(controlBounds, trim);
     
      /*
       * Ensure minimal size. Interacting with a tiny information control
       * (resizing, selecting text) would be a pain.
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControlExtension3.computeTrim()

    IInformationControl informationControl= getInformationControl();

    Rectangle controlBounds= fContentBounds;
    if (informationControl instanceof IInformationControlExtension3) {
      IInformationControlExtension3 iControl3= (IInformationControlExtension3) informationControl;
      Rectangle trim= iControl3.computeTrim();
      controlBounds= Geometry.add(controlBounds, trim);

      /*
       * Ensure minimal size. Interacting with a tiny information control
       * (resizing, selecting text) would be a pain.
View Full Code Here

Examples of org.eclipse.swt.custom.StyledText.computeTrim()

      int topLine= text.getTopIndex();
      int rangeTopLine= getWidgetLineNumber(lineRange.getStartLine());
      int topDelta= Math.max(topLine - rangeTopLine, 0);

      Rectangle size= text.getClientArea();
      Rectangle trim= text.computeTrim(0, 0, 0, 0);
      int height= size.height - trim.height;
     
      int lines= JFaceTextUtil.getLineIndex(text, height) - text.getTopIndex();
     
      int bottomLine= topLine + lines;
View Full Code Here

Examples of org.eclipse.swt.custom.StyledText.computeTrim()

     * @see Layout#layout(Composite, boolean)
     */
    protected void layout(Composite composite, boolean flushCache) {
      Rectangle clArea= composite.getClientArea();
      StyledText textWidget= getTextWidget();
      Rectangle trim= textWidget.computeTrim(0, 0, 0, 0);
      int topTrim= - trim.y;
      int scrollbarHeight= trim.height - topTrim; // horizontal scroll bar is only under the client area
      if ((textWidget.getScrollbarsMode() & SWT.SCROLLBAR_OVERLAY) != 0)
        scrollbarHeight= 0;

View Full Code Here

Examples of org.eclipse.swt.custom.StyledText.computeTrim()

      int topLine= text.getTopIndex();
      int rangeTopLine= getWidgetLineNumber(lineRange.getStartLine());
      int topDelta= Math.max(topLine - rangeTopLine, 0);

      Rectangle size= text.getClientArea();
      Rectangle trim= text.computeTrim(0, 0, 0, 0);
      int height= size.height - trim.height;

      int lines= JFaceTextUtil.getLineIndex(text, height) - text.getTopIndex();

      int bottomLine= topLine + lines;
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.