API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.text. Bidi View Source
Author(s)
Since
1.4
Version
Serial
Hierarchy
 Object
      Bidi
Implements
Subclasses
Description
publicfinal class Bidi
  This class implements the Unicode Bidirectional Algorithm.
See also:   
Constructors
public Bidi (AttributedCharacterIterator paragraph)
  Create Bidi from the given paragraph of text.
public Bidi (char[] text, int textStart, byte[] embeddings, int embStart, int paragraphLength, int flags)
  Create Bidi from the given text, embedding, and direction information.
private Bidi (int dir, int baseLevel, int length, int[] data, int[] cws)
Private constructor used by line bidi.
public Bidi (String paragraph, int flags)
  Create Bidi from the given paragraph of text and base direction.
Methods
Hide/Show inherited methods
public boolean baseIsLeftToRight ()
  Return true if the base direction is left-to-right.
public Bidi createLineBidi (int lineStart, int lineLimit)
  Create a Bidi object representing the bidi information on a line of text within the paragraph represented by the current Bidi.
public int getBaseLevel ()
  Return the base level (0 if left-to-right, 1 if right-to-left).
public int getLength ()
  Return the length of text in the line.
public int getLevelAt (int offset)
  Return the resolved level of the character at offset.
public int getRunCount ()
  Return the number of level runs.
public int getRunLevel (int run)
  Return the level of the nth logical run in this line.
public int getRunLimit (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.
public int getRunStart (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.
public boolean isLeftToRight ()
  Return true if the line is all left-to-right text and the base direction is left-to-right.
public boolean isMixed ()
  Return true if the line is not left-to-right or right-to-left.
public boolean isRightToLeft ()
  Return true if the line is all right-to-left text, and the base direction is right-to-left.
publicstatic void reorderVisually (byte[] levels, int levelStart, Object objects, int objectStart, int count)
  Reorder the objects in the array into visual order based on their levels.
publicstatic boolean requiresBidi (char[] text, int start, int limit)
  Return true if the specified text requires bidi analysis.
public String toString ()
Display the bidi internal state, used in debugging.
Fields
Hide/Show inherited fields
pack-private byte baselevel
pack-private int cws
pack-private byte dir
publicfinalstatic int DIRECTION_DEFAULT_LEFT_TO_RIGHT = "-2"
  Constant indicating that the base direction depends on the first strong directional character in the text according to the Unicode Bidirectional Algorithm.
publicfinalstatic int DIRECTION_DEFAULT_RIGHT_TO_LEFT = "-1"
  Constant indicating that the base direction depends on the first strong directional character in the text according to the Unicode Bidirectional Algorithm.
publicfinalstatic int DIRECTION_LEFT_TO_RIGHT = "0"
Constant indicating base direction is left-to-right.
publicfinalstatic int DIRECTION_RIGHT_TO_LEFT = "1"
Constant indicating base direction is right-to-left.
pack-private int length
pack-private int runs
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar