Examples of TokenSubList


Examples of org.fife.ui.rsyntaxtextarea.TokenUtils.TokenSubList

//System.err.println(">>> calculateLineCount: " + startOffset + "-" + p1);
      for (int p0=startOffset; p0<p1; ) {
//System.err.println("... ... " + p0 + ", " + p1);
        nlines += 1;
        TokenSubList subList = TokenUtils.getSubTokenList(tokenList, p0,
            WrappedSyntaxView.this, textArea, x0, lineCountTempToken);
        x0 = subList!=null ? subList.x : x0;
        tokenList = subList!=null ? subList.tokenList : null;
        int p = calculateBreakPosition(p0, tokenList, x0);
View Full Code Here

Examples of org.fife.ui.rsyntaxtextarea.TokenUtils.TokenSubList

      int line = map.getElementIndex(p0);
      Token tokenList = doc.getTokenListForLine(line);
      float x0 = alloc.x;//0;

      while (p0 < p1) {
        TokenSubList subList = TokenUtils.getSubTokenList(tokenList, p0,
            WrappedSyntaxView.this, textArea, x0, lineCountTempToken);
        x0 = subList!=null ? subList.x : x0;
        tokenList = subList!=null ? subList.tokenList : null;
        int p = calculateBreakPosition(p0, tokenList, x0);
        if ((pos >= p0) && (testP<p)) {//pos < p)) {
View Full Code Here

Examples of org.fife.ui.rsyntaxtextarea.TokenUtils.TokenSubList

        while (p0<p1) {

          // We can always use alloc.x since we always break
          // lines so they start at the beginning of a physical
          // line.
          TokenSubList subList = TokenUtils.getSubTokenList(tlist, p0,
              WrappedSyntaxView.this, textArea, alloc.x, lineCountTempToken);
          tlist = subList!=null ? subList.tokenList : null;
          int p = calculateBreakPosition(p0, tlist, alloc.x);

          // If desired view position is in this physical chunk.
View Full Code Here

Examples of org.fife.ui.rsyntaxtextarea.TokenUtils.TokenSubList

    Token t = doc.getTokenListForLine(lineNum);

    // Modify the token list 't' to begin at p0 (but still have correct
    // token types, etc.), and get the x-location (in pixels) of the
    // beginning of this new token list.
    TokenSubList subList = TokenUtils.getSubTokenList(t, p0, e, textArea,
        0, tempToken);
    t = subList.tokenList;

    rect = t.listOffsetToView(textArea, e, p1, x0, rect);
    return rect;
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.