/** Produce an appropriate character iterator. * @return an iterator */ public AttributedCharacterIterator iterator() { int size = current + 1; char[] cs = new char[size]; Font[] fs = new Font[size]; Color[] colos = new Color[size]; int[] rstmp = new int[size]; int[] rltmp = new int[size]; System.arraycopy(runStart, 0, rstmp, 0, size); System.arraycopy(runLimit, 0, rltmp, 0, size); System.arraycopy(chars, 0, cs, 0, size); System.arraycopy(fonts, 0, fs, 0, size); System.arraycopy(colors, 0, colos, 0, size); AttributedCharacterIterator ret = new AttributedCharacterIteratorImpl(cs, fs, colos, rstmp, rltmp); return ret; }
/** Produce an appropriate character iterator. * @return an iterator */ public AttributedCharacterIterator iterator() { int size = current + 1; char[] cs = new char[size]; Font[] fs = new Font[size]; Color[] colos = new Color[size]; int[] rstmp = new int[size]; int[] rltmp = new int[size]; System.arraycopy(runStart, 0, rstmp, 0, size); System.arraycopy(runLimit, 0, rltmp, 0, size); System.arraycopy(chars, 0, cs, 0, size); System.arraycopy(fonts, 0, fs, 0, size); System.arraycopy(colors, 0, colos, 0, size); AttributedCharacterIterator ret = new AttributedCharacterIteratorImpl(cs, fs, colos, rstmp, rltmp); return ret; }
/** Produce an appropriate character iterator. * @return an iterator */ public AttributedCharacterIterator iterator() { int size = current + 1; char[] cs = new char[size]; Font[] fs = new Font[size]; Color[] colos = new Color[size]; int[] rstmp = new int[size]; int[] rltmp = new int[size]; System.arraycopy(runStart, 0, rstmp, 0, size); System.arraycopy(runLimit, 0, rltmp, 0, size); System.arraycopy(chars, 0, cs, 0, size); System.arraycopy(fonts, 0, fs, 0, size); System.arraycopy(colors, 0, colos, 0, size); AttributedCharacterIterator ret = new AttributedCharacterIteratorImpl(cs, fs, colos, rstmp, rltmp); return ret; }