/** * Decrements the iterator's index by one and returns the character at the new index. */ public char previous() { return reorderedACI.previous(); }
/** * Decrements the iterator's index by one and returns the character at the new index. */ public char previous() { return reorderedACI.previous(); }
/** * Decrements the iterator's index by one and returns the character at the new index. */ public char previous() { return reorderedACI.previous(); }
public char previous() { return aci.previous(); }
/** * Decrements the iterator's index by one and returns * the character at the new index. * <br><b>Specified by:</b> java.text.CharacterIterator. */ public char previous() { if (getIndex() > begin) { return aci.previous(); } else { return CharacterIterator.DONE; } }
/** * Decrements the iterator's index by one and returns * the character at the new index. * <br><b>Specified by:</b> java.text.CharacterIterator. */ public char previous() { if (getIndex() > begin) { return aci.previous(); } else { return CharacterIterator.DONE; } }
/** * Decrements the iterator's index by one and returns * the character at the new index. * <br><b>Specified by:</b> java.text.CharacterIterator. */ public char previous() { if (getIndex() > begin) { return aci.previous(); } else { return CharacterIterator.DONE; } }
public TextRunBreaker(AttributedCharacterIterator aci, FontRenderContext frc) { this.aci = aci; this.frc = frc; segmentsStart = aci.getBeginIndex(); segmentsEnd = aci.getEndIndex(); int len = segmentsEnd - segmentsStart; text = new char[len]; aci.setIndex(segmentsEnd); while (len-- != 0) { // Going in backward direction is faster? Simplier checks here? text[len] = aci.previous(); } createStyleRuns(); }
ch = aci.previous(); if (ch != AttributedCharacterIterator.DONE) prevCls = getCharCharClass(ch);
case SOFT_HYPHEN: hideLast[i] = true; nch = aci.next(); aci.previous(); kern = gvtFont.getHKern(pch, nch); advAdj[i] = -(glyphPos[2*i+2]-glyphPos[2*i]+kern); case SPACE: space[i] = true; nch = aci.next(); aci.previous(); kern = gvtFont.getHKern(pch, nch); lastAdvAdj[i] = -(glyphPos[2*i+2]-glyphPos[2*i]+kern);
ch = aci.previous(); if (ch != AttributedCharacterIterator.DONE) prevCls = getCharCharClass(ch);
ch = aci.previous(); if (ch != AttributedCharacterIterator.DONE) prevCls = getCharCharClass(ch);
case SOFT_HYPHEN: hideLast[i] = true; nch = aci.next(); aci.previous(); kern = gvtFont.getHKern(pch, nch); advAdj[i] = -(glyphPos[2*i+2]-glyphPos[2*i]+kern); case SPACE: space[i] = true; nch = aci.next(); aci.previous(); kern = gvtFont.getHKern(pch, nch); lastAdvAdj[i] = -(glyphPos[2*i+2]-glyphPos[2*i]+kern);
case SOFT_HYPHEN: hideLast[i] = true; nch = aci.next(); aci.previous(); kern = gvtFont.getHKern(pch, nch); advAdj[i] = -(glyphPos[2*i+2]-glyphPos[2*i]+kern); case SPACE: space[i] = true; nch = aci.next(); aci.previous(); kern = gvtFont.getHKern(pch, nch); lastAdvAdj[i] = -(glyphPos[2*i+2]-glyphPos[2*i]+kern);