Top Fields Methods
com.openhtmltopdf.bidi

public Interface BidiSplitter

Known Direct Implementers
com.openhtmltopdf.bidi.SimpleBidiSplitter

Field Summary

Modifier and TypeField and Description
public static final byte
public static final byte
public static final byte

Method Summary

Modifier and TypeMethod and Description
public int
countTextRuns()

Count the number of runs, each of which contains text in one visual order only.

public byte
getBaseDirection(String paragraph)

Get the base direction of a paragraph.

public BidiTextRun

Returns:

information about a visual run.
getVisualRun
(int
from zero to countTextRuns.
runIndex
)

public void
setParagraph(String paragraph, byte
either LTR or RTL
defaultDirection
)

Sets the text which is to be split on visual ordering.

Field Detail

LTRback to summary
public static final byte LTR
NEUTRALback to summary
public static final byte NEUTRAL
RTLback to summary
public static final byte RTL

Method Detail

countTextRunsback to summary
public int countTextRuns()

Count the number of runs, each of which contains text in one visual order only. Can only be called after setParagraph has run the BIDI algorithm.

getBaseDirectionback to summary
public byte getBaseDirection(String paragraph)

Get the base direction of a paragraph. Defined as the first character that has strong directionality or neutral if they are all neutral characters.

getVisualRunback to summary
public BidiTextRun getVisualRun(int runIndex)
Parameters
runIndex:int

from zero to countTextRuns.

Returns:BidiTextRun

information about a visual run.

setParagraphback to summary
public void setParagraph(String paragraph, byte defaultDirection)

Sets the text which is to be split on visual ordering.

Parameters
defaultDirection:byte

either LTR or RTL