Top Fields Constructors Methods
com.openhtmltopdf.bidi

public Class SimpleBidiSplitter

extends Object
implements BidiSplitter
Class Inheritance
All Implemented Interfaces
com.openhtmltopdf.bidi.BidiSplitter
Imports
java.util.Collections, .List

Field Summary

Modifier and TypeField and Description
private List<BidiTextRun>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
countTextRuns()

Implements com.openhtmltopdf.bidi.BidiSplitter.countTextRuns.

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

public byte
getBaseDirection(String paragraph)

Implements com.openhtmltopdf.bidi.BidiSplitter.getBaseDirection.

Get the base direction of a paragraph.

public BidiTextRun
getVisualRun(int
from zero to countTextRuns.
runIndex
)

Implements com.openhtmltopdf.bidi.BidiSplitter.getVisualRun.

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

Implements com.openhtmltopdf.bidi.BidiSplitter.setParagraph.

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

runsback to summary
private List<BidiTextRun> runs

Constructor Detail

SimpleBidiSplitterback to summary
public SimpleBidiSplitter()

Method Detail

countTextRunsback to summary
public int countTextRuns()

Implements com.openhtmltopdf.bidi.BidiSplitter.countTextRuns.

Doc from com.openhtmltopdf.bidi.BidiSplitter.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.

Annotations
@Override
getBaseDirectionback to summary
public byte getBaseDirection(String paragraph)

Implements com.openhtmltopdf.bidi.BidiSplitter.getBaseDirection.

Doc from com.openhtmltopdf.bidi.BidiSplitter.getBaseDirection.

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

Annotations
@Override
getVisualRunback to summary
public BidiTextRun getVisualRun(int runIndex)

Implements com.openhtmltopdf.bidi.BidiSplitter.getVisualRun.

Parameters
runIndex:int

Doc from com.openhtmltopdf.bidi.BidiSplitter.getVisualRun.

from zero to countTextRuns.

Returns:BidiTextRun

Doc from com.openhtmltopdf.bidi.BidiSplitter.getVisualRun.

information about a visual run.

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

Implements com.openhtmltopdf.bidi.BidiSplitter.setParagraph.

Doc from com.openhtmltopdf.bidi.BidiSplitter.setParagraph.

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

Parameters
defaultDirection:byte

either LTR or RTL

Annotations
@Override