Java java.text Bidi fields, constructors, methods, implement or subclass

Example usage for Java java.text Bidi fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.text Bidi.

The text is from its open source code.

Field

intDIRECTION_LEFT_TO_RIGHT
Constant indicating base direction is left-to-right.
intDIRECTION_RIGHT_TO_LEFT
Constant indicating base direction is right-to-left.
intDIRECTION_DEFAULT_LEFT_TO_RIGHT
Constant indicating that the base direction depends on the first strong directional character in the text according to the Unicode Bidirectional Algorithm.

Constructor

Bidi(String paragraph, int flags)
Create Bidi from the given paragraph of text and base direction.
Bidi(char[] text, int textStart, byte[] embeddings, int embStart, int paragraphLength, int flags)
Create Bidi from the given text, embedding, and direction information.

Method

booleanbaseIsLeftToRight()
Return true if the base direction is left-to-right.
intgetBaseLevel()
Return the base level (0 if left-to-right, 1 if right-to-left).
intgetRunCount()
Return the number of level runs.
intgetRunLevel(int run)
Return the level of the nth logical run in this line.
intgetRunLimit(int run)
Return the index of the character past the end of the nth logical run in this line, as an offset from the start of the line.
intgetRunStart(int run)
Return the index of the character at the start of the nth logical run in this line, as an offset from the start of the line.
booleanisMixed()
Return true if the line is not left-to-right or right-to-left.
voidreorderVisually(byte[] levels, int levelStart, Object[] objects, int objectStart, int count)
Reorder the objects in the array into visual order based on their levels.
booleanrequiresBidi(char[] text, int start, int limit)
Return true if the specified text requires bidi analysis.