Package com.openhtmltopdf.bidi
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 com.openhtmltopdf.bidi.ParagraphSplitter.Paragraph
cssDirection, textRuns
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Here we add a textnode and its postion to a list.byte
nextSplit
(int startIndexInParagraph) prevSplit
(int startIndexInParagraph) protected void
runBidiSplitter
(BidiSplitter splitter, LayoutContext c) Here we call out to the actual BIDI algorithm.Methods inherited from class com.openhtmltopdf.bidi.ParagraphSplitter.Paragraph
getCSSDirection, getFirstCharIndexInParagraph
-
Constructor Details
-
FakeParagraph
-
-
Method Details
-
add
Description copied from class:ParagraphSplitter.Paragraph
Here we add a textnode and its postion to a list. We also build the paragraph string.- Overrides:
add
in classParagraphSplitter.Paragraph
-
getActualDirection
public byte getActualDirection()- Overrides:
getActualDirection
in classParagraphSplitter.Paragraph
-
nextSplit
- Overrides:
nextSplit
in classParagraphSplitter.Paragraph
- Returns:
- the BidiTextRun that starts at or above startIndexInPararagraph.
-
prevSplit
- Overrides:
prevSplit
in classParagraphSplitter.Paragraph
- Returns:
- the BidiTextRun that starts at or before startIndexInParagraph.
-
runBidiSplitter
Description copied from class:ParagraphSplitter.Paragraph
Here we call out to the actual BIDI algorithm.- Overrides:
runBidiSplitter
in classParagraphSplitter.Paragraph
-