⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bidiorder.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;byte</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#WS">WS</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Whitespace</TD></TR></TABLE>&nbsp;<!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#BidiOrder(byte[])">BidiOrder</A></B>(byte[]&nbsp;types)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize using an array of direction types.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#BidiOrder(byte[], byte)">BidiOrder</A></B>(byte[]&nbsp;types,          byte&nbsp;paragraphEmbeddingLevel)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize using an array of direction types and an externally supplied paragraph embedding level.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#BidiOrder(char[], int, int, byte)">BidiOrder</A></B>(char[]&nbsp;text,          int&nbsp;offset,          int&nbsp;length,          byte&nbsp;paragraphEmbeddingLevel)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR></TABLE>&nbsp;<!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private static&nbsp;int[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#computeMultilineReordering(byte[], int[])">computeMultilineReordering</A></B>(byte[]&nbsp;levels,                           int[]&nbsp;linebreaks)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return multiline reordering array for a given level array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private static&nbsp;int[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#computeReordering(byte[])">computeReordering</A></B>(byte[]&nbsp;levels)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return reordering array for a given level array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#determineExplicitEmbeddingLevels()">determineExplicitEmbeddingLevels</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Process embedding format codes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#determineParagraphEmbeddingLevel()">determineParagraphEmbeddingLevel</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1) determining the paragraph level.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private &nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#findRunLimit(int, int, byte[])">findRunLimit</A></B>(int&nbsp;index,             int&nbsp;limit,             byte[]&nbsp;validSet)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the limit of the run starting at index that includes only resultTypes in validSet.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private &nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#findRunStart(int, byte[])">findRunStart</A></B>(int&nbsp;index,             byte[]&nbsp;validSet)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the start of the run including index that includes only resultTypes in validSet.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;byte</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#getBaseLevel()">getBaseLevel</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the base level of the paragraph.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;byte</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#getDirection(char)">getDirection</A></B>(char&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#getLevels()">getLevels</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#getLevels(int[])">getLevels</A></B>(int[]&nbsp;linebreaks)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return levels array breaking lines at offsets in linebreaks.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#getReordering(int[])">getReordering</A></B>(int[]&nbsp;linebreaks)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return reordering array breaking lines at offsets in linebreaks.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#isWhitespace(byte)">isWhitespace</A></B>(byte&nbsp;biditype)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the type is considered a whitespace type for the line break rules.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private static&nbsp;byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#processEmbeddings(byte[], byte)">processEmbeddings</A></B>(byte[]&nbsp;resultTypes,                  byte&nbsp;paragraphEmbeddingLevel)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2) determining explicit levels Rules X1 - X8 The interaction of these rules makes handling them a bit complex.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private &nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#reinsertExplicitCodes(int)">reinsertExplicitCodes</A></B>(int&nbsp;textLength)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reinsert levels information for explicit codes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private &nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#removeExplicitCodes()">removeExplicitCodes</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rules X9.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#resolveImplicitLevels(int, int, byte, byte, byte)">resolveImplicitLevels</A></B>(int&nbsp;start,                      int&nbsp;limit,                      byte&nbsp;level,                      byte&nbsp;sor,                      byte&nbsp;eor)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;7) resolving implicit embedding levels Rules I1, I2.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#resolveNeutralTypes(int, int, byte, byte, byte)">resolveNeutralTypes</A></B>(int&nbsp;start,                    int&nbsp;limit,                    byte&nbsp;level,                    byte&nbsp;sor,                    byte&nbsp;eor)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6) resolving neutral types Rules N1-N2.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#resolveWeakTypes(int, int, byte, byte, byte)">resolveWeakTypes</A></B>(int&nbsp;start,                 int&nbsp;limit,                 byte&nbsp;level,                 byte&nbsp;sor,                 byte&nbsp;eor)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3) resolving weak types Rules W1-W7.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#runAlgorithm()">runAlgorithm</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The algorithm.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#setLevels(int, int, byte)">setLevels</A></B>(int&nbsp;start,          int&nbsp;limit,          byte&nbsp;newLevel)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set resultLevels from start up to (but not including) limit to newLevel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#setTypes(int, int, byte)">setTypes</A></B>(int&nbsp;start,         int&nbsp;limit,         byte&nbsp;newType)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set resultTypes from start up to (but not including) limit to newType.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private static&nbsp;byte</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#typeForLevel(int)">typeForLevel</A></B>(int&nbsp;level)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the strong type (L or R) corresponding to the level.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#validateLineBreaks(int[], int)">validateLineBreaks</A></B>(int[]&nbsp;linebreaks,                   int&nbsp;textLength)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Throw exception if line breaks array is invalid.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#validateParagraphEmbeddingLevel(byte)">validateParagraphEmbeddingLevel</A></B>(byte&nbsp;paragraphEmbeddingLevel)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Throw exception if paragraph embedding level is invalid.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#validateTypes(byte[])">validateTypes</A></B>(byte[]&nbsp;types)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Throw exception if type array is invalid.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="initialTypes"><!-- --></A><H3>initialTypes</H3><PRE>private byte[] <B>initialTypes</B></PRE><DL><DL></DL></DL><HR><A NAME="embeddings"><!-- --></A><H3>embeddings</H3><PRE>private byte[] <B>embeddings</B></PRE><DL><DL></DL></DL><HR><A NAME="paragraphEmbeddingLevel"><!-- --></A><H3>paragraphEmbeddingLevel</H3><PRE>private byte <B>paragraphEmbeddingLevel</B></PRE><DL><DL></DL></DL><HR><A NAME="textLength"><!-- --></A><H3>textLength</H3><PRE>private int <B>textLength</B></PRE><DL><DL></DL></DL><HR><A NAME="resultTypes"><!-- --></A><H3>resultTypes</H3><PRE>private byte[] <B>resultTypes</B></PRE><DL><DL></DL></DL><HR><A NAME="resultLevels"><!-- --></A><H3>resultLevels</H3><PRE>private byte[] <B>resultLevels</B></PRE><DL><DL></DL></DL><HR><A NAME="L"><!-- --></A><H3>L</H3><PRE>public static final byte <B>L</B></PRE><DL><DD>Left-to-right<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BidiOrder.L">Constant Field Values</A></DL></DL><HR><A NAME="LRE"><!-- --></A><H3>LRE</H3><PRE>public static final byte <B>LRE</B></PRE><DL><DD>Left-to-Right Embedding<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.BidiOrder.LRE">Constant Field Values</A></DL></DL><HR>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -