Package com.openhtmltopdf.bidi
Class ParagraphSplitter.FakeParagraph
java.lang.Object
com.openhtmltopdf.bidi.ParagraphSplitter.Paragraph
com.openhtmltopdf.bidi.ParagraphSplitter.FakeParagraph
- Enclosing class:
- ParagraphSplitter
public static class ParagraphSplitter.FakeParagraph extends ParagraphSplitter.Paragraph
A fake paragraqph only supports manual BIDI classification.
-
Field Summary
Fields inherited from class com.openhtmltopdf.bidi.ParagraphSplitter.Paragraph
cssDirection, textRuns -
Method Summary
Modifier and Type Method Description protected voidadd(String text, Text textNode)Here we add a textnode and its postion to a list.bytegetActualDirection()BidiTextRunnextSplit(int startIndexInParagraph)BidiTextRunprevSplit(int startIndexInParagraph)protected voidrunBidiSplitter(BidiSplitter splitter, LayoutContext c)Here we call out to the actual BIDI algorithm.Methods inherited from class com.openhtmltopdf.bidi.ParagraphSplitter.Paragraph
getCSSDirection, getFirstCharIndexInParagraph
-
Method Details
-
add
Description copied from class:ParagraphSplitter.ParagraphHere we add a textnode and its postion to a list. We also build the paragraph string.- Overrides:
addin classParagraphSplitter.Paragraph
-
getActualDirection
public byte getActualDirection()- Overrides:
getActualDirectionin classParagraphSplitter.Paragraph
-
nextSplit
- Overrides:
nextSplitin classParagraphSplitter.Paragraph- Returns:
- the BidiTextRun that starts at or above startIndexInPararagraph.
-
prevSplit
- Overrides:
prevSplitin classParagraphSplitter.Paragraph- Returns:
- the BidiTextRun that starts at or before startIndexInParagraph.
-
runBidiSplitter
Description copied from class:ParagraphSplitter.ParagraphHere we call out to the actual BIDI algorithm.- Overrides:
runBidiSplitterin classParagraphSplitter.Paragraph
-