for (Token t=tokenList; t!=null&&t.isPaintable(); t=t.getNextToken()) { if (t.containsPosition(upTo)) { return width + t.getWidthUpTo(upTo-t.getOffset(), textArea, e, x0+width);
/** * Returns the width of this token given the specified parameters. * * @param textArea The text area in which the token is being painted. * @param e Describes how to expand tabs. This parameter cannot be * <code>null</code>. * @param x0 The pixel-location at which the token begins. This is needed * because of tabs. * @return The width of the token, in pixels. * @see #getWidthUpTo */ public float getWidth(RSyntaxTextArea textArea, TabExpander e, float x0) { return getWidthUpTo(textCount, textArea, e, x0); }
/** * Returns the width of this token given the specified parameters. * * @param textArea The text area in which the token is being painted. * @param e Describes how to expand tabs. This parameter cannot be * <code>null</code>. * @param x0 The pixel-location at which the token begins. This is needed * because of tabs. * @return The width of the token, in pixels. * @see #getWidthUpTo */ public float getWidth(RSyntaxTextArea textArea, TabExpander e, float x0) { return getWidthUpTo(textCount, textArea, e, x0); }
endX = (int)token.getWidthUpTo(offs, host, e, 0);
x0 += t.getWidthUpTo(t.length()-difference+1, textArea, e, x0); tempToken.copyFrom(t); tempToken.makeStartAt(pos);
for (Token t=tokenList; t!=null&&t.isPaintable(); t=t.getNextToken()) { if (t.containsPosition(upTo)) { return width + t.getWidthUpTo(upTo-t.offset, textArea, e, x0+width);
for (Token t=tokenList; t!=null&&t.isPaintable(); t=t.getNextToken()) { if (t.containsPosition(upTo)) { return width + t.getWidthUpTo(upTo-t.offset, textArea, e, x0+width);
for (Token t=tokenList; t!=null&&t.isPaintable(); t=t.getNextToken()) { if (t.containsPosition(upTo)) { return width + t.getWidthUpTo(upTo-t.getOffset(), textArea, e, x0+width);
endX = (int)token.getWidthUpTo(offs, host, e, 0);
x0 += t.getWidthUpTo(t.textCount-difference+1, textArea, e, x0); t.makeStartAt(pos);
x0 += t.getWidthUpTo(t.textCount-difference+1, textArea, e, x0); t.makeStartAt(pos);
x0 += t.getWidthUpTo(t.length()-difference+1, textArea, e, x0); tempToken.copyFrom(t); tempToken.makeStartAt(pos);