Package org.eclipse.ui.internal.forms.widgets

Examples of org.eclipse.ui.internal.forms.widgets.Locator


    private Point computeTextSize(int wHint) {
      Paragraph[] paragraphs = model.getParagraphs();
      GC gc = new GC(FormText.this);
      gc.setFont(getFont());
      Locator loc = new Locator();
      int width = wHint != SWT.DEFAULT ? wHint : 0;
      FontMetrics fm = gc.getFontMetrics();
      int lineHeight = fm.getHeight();
      boolean selectableInTheLastRow = false;
      for (int i = 0; i < paragraphs.length; i++) {
View Full Code Here


      gc.setFont(getFont());
      ensureBoldFontPresent(getFont());
      gc.setForeground(getForeground());
      gc.setBackground(getBackground());

      Locator loc = new Locator();
      loc.marginWidth = marginWidth;
      loc.marginHeight = marginHeight;
      loc.x = marginWidth;
      loc.y = marginHeight;
      FontMetrics fm = gc.getFontMetrics();
      int lineHeight = fm.getHeight();

      Paragraph[] paragraphs = model.getParagraphs();
      IHyperlinkSegment selectedLink = getSelectedLink();
      for (int i = 0; i < paragraphs.length; i++) {
        Paragraph p = paragraphs[i];
        if (i > 0 && paragraphsSeparated && p.getAddVerticalSpace())
          loc.y += getParagraphSpacing(lineHeight);
        loc.indent = p.getIndent();
        loc.resetCaret();
        loc.rowHeight = 0;
        p.layout(gc, carea.width, loc, lineHeight, resourceTable,
            selectedLink);
      }
      gc.dispose();
View Full Code Here

    private Point computeTextSize(int wHint) {
      Paragraph[] paragraphs = model.getParagraphs();
      GC gc = new GC(FormText.this);
      gc.setFont(getFont());
      Locator loc = new Locator();
      int width = wHint != SWT.DEFAULT ? wHint : 0;
      FontMetrics fm = gc.getFontMetrics();
      int lineHeight = fm.getHeight();
      boolean selectableInTheLastRow = false;
      for (int i = 0; i < paragraphs.length; i++) {
View Full Code Here

      gc.setFont(getFont());
      ensureBoldFontPresent(getFont());
      gc.setForeground(getForeground());
      gc.setBackground(getBackground());

      Locator loc = new Locator();
      loc.marginWidth = marginWidth;
      loc.marginHeight = marginHeight;
      loc.y = marginHeight;
      FontMetrics fm = gc.getFontMetrics();
      int lineHeight = fm.getHeight();

      Paragraph[] paragraphs = model.getParagraphs();
      IHyperlinkSegment selectedLink = getSelectedLink();
      for (int i = 0; i < paragraphs.length; i++) {
        Paragraph p = paragraphs[i];
        if (i > 0 && paragraphsSeparated && p.getAddVerticalSpace())
          loc.y += getParagraphSpacing(lineHeight);
        loc.indent = p.getIndent();
        loc.resetCaret();
        loc.rowHeight = 0;
        p.layout(gc, carea.width, loc, lineHeight, resourceTable,
            selectedLink);
      }
      gc.dispose();
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.forms.widgets.Locator

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.