📄 bidiorder.html
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static byte</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#WS">WS</A></B></CODE><BR> Whitespace</TD></TR></TABLE> <!-- ======== 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[] types)</CODE><BR> 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[] types, byte paragraphEmbeddingLevel)</CODE><BR> 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[] text, int offset, int length, byte paragraphEmbeddingLevel)</CODE><BR> </TD></TR></TABLE> <!-- ========== 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 int[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#computeMultilineReordering(byte[], int[])">computeMultilineReordering</A></B>(byte[] levels, int[] linebreaks)</CODE><BR> 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 int[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#computeReordering(byte[])">computeReordering</A></B>(byte[] levels)</CODE><BR> 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 void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#determineExplicitEmbeddingLevels()">determineExplicitEmbeddingLevels</A></B>()</CODE><BR> Process embedding format codes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#determineParagraphEmbeddingLevel()">determineParagraphEmbeddingLevel</A></B>()</CODE><BR> 1) determining the paragraph level.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#findRunLimit(int, int, byte[])">findRunLimit</A></B>(int index, int limit, byte[] validSet)</CODE><BR> 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 int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#findRunStart(int, byte[])">findRunStart</A></B>(int index, byte[] validSet)</CODE><BR> 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> byte</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#getBaseLevel()">getBaseLevel</A></B>()</CODE><BR> 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 byte</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#getDirection(char)">getDirection</A></B>(char c)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#getLevels()">getLevels</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#getLevels(int[])">getLevels</A></B>(int[] linebreaks)</CODE><BR> 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> int[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#getReordering(int[])">getReordering</A></B>(int[] linebreaks)</CODE><BR> 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 boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#isWhitespace(byte)">isWhitespace</A></B>(byte biditype)</CODE><BR> 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 byte[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#processEmbeddings(byte[], byte)">processEmbeddings</A></B>(byte[] resultTypes, byte paragraphEmbeddingLevel)</CODE><BR> 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 int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#reinsertExplicitCodes(int)">reinsertExplicitCodes</A></B>(int textLength)</CODE><BR> 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 int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#removeExplicitCodes()">removeExplicitCodes</A></B>()</CODE><BR> Rules X9.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private 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 start, int limit, byte level, byte sor, byte eor)</CODE><BR> 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 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 start, int limit, byte level, byte sor, byte eor)</CODE><BR> 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 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 start, int limit, byte level, byte sor, byte eor)</CODE><BR> 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 void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#runAlgorithm()">runAlgorithm</A></B>()</CODE><BR> The algorithm.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>private void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#setLevels(int, int, byte)">setLevels</A></B>(int start, int limit, byte newLevel)</CODE><BR> 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 void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#setTypes(int, int, byte)">setTypes</A></B>(int start, int limit, byte newType)</CODE><BR> 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 byte</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#typeForLevel(int)">typeForLevel</A></B>(int level)</CODE><BR> 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 void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#validateLineBreaks(int[], int)">validateLineBreaks</A></B>(int[] linebreaks, int textLength)</CODE><BR> 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 void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#validateParagraphEmbeddingLevel(byte)">validateParagraphEmbeddingLevel</A></B>(byte paragraphEmbeddingLevel)</CODE><BR> 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 void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/BidiOrder.html#validateTypes(byte[])">validateTypes</A></B>(byte[] types)</CODE><BR> Throw exception if type array is invalid.</TD></TR></TABLE> <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> <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 + -