Class ParagraphSplitter.FakeParagraph
java.lang.Object
com.openhtmltopdf.bidi.ParagraphSplitter.Paragraph
com.openhtmltopdf.bidi.ParagraphSplitter.FakeParagraph
- Enclosing class:
ParagraphSplitter
A fake paragraqph only supports manual BIDI classification.
-
Field Summary
Fields inherited from class ParagraphSplitter.Paragraph
cssDirection, textRuns -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidHere we add a textnode and its postion to a list.bytenextSplit(int startIndexInParagraph) prevSplit(int startIndexInParagraph) protected voidrunBidiSplitter(BidiSplitter splitter, LayoutContext c) Here we call out to the actual BIDI algorithm.Methods inherited from class ParagraphSplitter.Paragraph
getCSSDirection, getFirstCharIndexInParagraph
-
Constructor Details
-
FakeParagraph
-
-
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
-