int j = run.getDirection() == Bidi.LTR ? st : e - 1; int l = run.getDirection() == Bidi.LTR ? e : st - 1; boolean plus = run.getDirection() == Bidi.LTR; while (j != l) { res.append(s.charAt(j));
@Override public BidiTextRun getVisualRun(int runIndex) { BidiRun run = bidi.getVisualRun(runIndex); BidiTextRun textRun = new BidiTextRun(run.getStart(), run.getLength(), run.getDirection()); return textRun; }
@Override public BidiTextRun getVisualRun(int runIndex) { BidiRun run = bidi.getVisualRun(runIndex); BidiTextRun textRun = new BidiTextRun(run.getStart(), run.getLength(), run.getDirection()); return textRun; }