List of usage examples for java.text Bidi requiresBidi
public static boolean requiresBidi(char[] text, int start, int limit)
From source file:net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.java
protected boolean isLeftToRight(char[] chars) { boolean leftToRight = true; if (Bidi.requiresBidi(chars, 0, chars.length)) { // determining the text direction // using default LTR as there's no way to have other default in the text Bidi bidi = new Bidi(chars, 0, null, 0, chars.length, Bidi.DIRECTION_DEFAULT_LEFT_TO_RIGHT); leftToRight = bidi.baseIsLeftToRight(); }/* w ww .j a va 2 s . c om*/ return leftToRight; }