Package org.eclipse.swt.custom

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


     * @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

      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

     * @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

      int x= clArea.x;
      int width= clArea.width;
View Full Code Here

      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

  private int getViewportHeight() {
    StyledText te = fLeft.getTextWidget();

    int vh = te.getClientArea().height;
    if (vh == 0) {
      Rectangle trim = te.computeTrim(0, 0, 0, 0);
      int scrollbarHeight = trim.height;

      int headerHeight = getHeaderHeight();

      Composite composite = (Composite) getControl();
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.