📄 pdfline.html
字号:
<BR> Checks if a newline caused the line split.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/PdfLine.html#isRTL()">isRTL</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/PdfLine.html#iterator()">iterator</A></B>()</CODE><BR> Returns an iterator of <CODE>PdfChunk</CODE>s.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/PdfLine.html#listIndent()">listIndent</A></B>()</CODE><BR> Return the indentation needed to show the listsymbol.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../com/lowagie/text/Chunk.html" title="class in com.lowagie.text">Chunk</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/PdfLine.html#listSymbol()">listSymbol</A></B>()</CODE><BR> Returns the listsymbol of this line.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/PdfLine.html#numberOfSpaces()">numberOfSpaces</A></B>()</CODE><BR> Returns the number of space-characters in this line.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/PdfLine.html#resetAlignment()">resetAlignment</A></B>()</CODE><BR> Resets the alignment of this line.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/PdfLine.html#setExtraIndent(float)">setExtraIndent</A></B>(float extra)</CODE><BR> Adds extra indentation to the left (for Paragraph.setFirstLineIndent).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/PdfLine.html#setListItem(com.lowagie.text.ListItem)">setListItem</A></B>(<A HREF="../../../../com/lowagie/text/ListItem.html" title="class in com.lowagie.text">ListItem</A> listItem)</CODE><BR> Sets the listsymbol of this line.</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/PdfLine.html#size()">size</A></B>()</CODE><BR> Returns the number of chunks in the line.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/PdfLine.html#toString()">toString</A></B>()</CODE><BR> Get the string representation of what is in this line.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) float</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/lowagie/text/pdf/PdfLine.html#widthLeft()">widthLeft</A></B>()</CODE><BR> Returns the width that is left, after a maximum of characters is added to the line.</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#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="line"><!-- --></A><H3>line</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A> <B>line</B></PRE><DL><DD>The arraylist containing the chunks.<P><DL></DL></DL><HR><A NAME="left"><!-- --></A><H3>left</H3><PRE>protected float <B>left</B></PRE><DL><DD>The left indentation of the line.<P><DL></DL></DL><HR><A NAME="width"><!-- --></A><H3>width</H3><PRE>protected float <B>width</B></PRE><DL><DD>The width of the line.<P><DL></DL></DL><HR><A NAME="alignment"><!-- --></A><H3>alignment</H3><PRE>protected int <B>alignment</B></PRE><DL><DD>The alignment of the line.<P><DL></DL></DL><HR><A NAME="height"><!-- --></A><H3>height</H3><PRE>protected float <B>height</B></PRE><DL><DD>The height of the line.<P><DL></DL></DL><HR><A NAME="listSymbol"><!-- --></A><H3>listSymbol</H3><PRE>protected <A HREF="../../../../com/lowagie/text/Chunk.html" title="class in com.lowagie.text">Chunk</A> <B>listSymbol</B></PRE><DL><DD>The listsymbol (if necessary).<P><DL></DL></DL><HR><A NAME="symbolIndent"><!-- --></A><H3>symbolIndent</H3><PRE>protected float <B>symbolIndent</B></PRE><DL><DD>The listsymbol (if necessary).<P><DL></DL></DL><HR><A NAME="newlineSplit"><!-- --></A><H3>newlineSplit</H3><PRE>protected boolean <B>newlineSplit</B></PRE><DL><DD><CODE>true</CODE> if the chunk splitting was caused by a newline.<P><DL></DL></DL><HR><A NAME="originalWidth"><!-- --></A><H3>originalWidth</H3><PRE>protected float <B>originalWidth</B></PRE><DL><DD>The original width.<P><DL></DL></DL><HR><A NAME="isRTL"><!-- --></A><H3>isRTL</H3><PRE>protected boolean <B>isRTL</B></PRE><DL><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_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>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="PdfLine(float, float, int, float)"><!-- --></A><H3>PdfLine</H3><PRE><B>PdfLine</B>(float left, float right, int alignment, float height)</PRE><DL><DD>Constructs a new <CODE>PdfLine</CODE>-object.<P><DL><DT><B>Parameters:</B><DD><CODE>left</CODE> - the limit of the line at the left<DD><CODE>right</CODE> - the limit of the line at the right<DD><CODE>alignment</CODE> - the alignment of the line<DD><CODE>height</CODE> - the height of the line</DL></DL><HR><A NAME="PdfLine(float, float, float, int, boolean, java.util.ArrayList, boolean)"><!-- --></A><H3>PdfLine</H3><PRE><B>PdfLine</B>(float left, float originalWidth, float remainingWidth, int alignment, boolean newlineSplit, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</A> line, boolean isRTL)</PRE><DL><DD>Creates a PdfLine object.<P><DL><DT><B>Parameters:</B><DD><CODE>left</CODE> - the left offset<DD><CODE>originalWidth</CODE> - the original width of the line<DD><CODE>remainingWidth</CODE> - bigger than 0 if the line isn't completely filled<DD><CODE>alignment</CODE> - the alignment of the line<DD><CODE>newlineSplit</CODE> - was the line splitted (or does the paragraph end with this line)<DD><CODE>line</CODE> - an array of PdfChunk objects<DD><CODE>isRTL</CODE> - do you have to read the line from Right to Left?</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_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>Method Detail</B></FONT></TH></TR></TABLE><A NAME="add(com.lowagie.text.pdf.PdfChunk)"><!-- --></A><H3>add</H3><PRE><A HREF="../../../../com/lowagie/text/pdf/PdfChunk.html" title="class in com.lowagie.text.pdf">PdfChunk</A> <B>add</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfChunk.html" title="class in com.lowagie.text.pdf">PdfChunk</A> chunk)</PRE><DL><DD>Adds a <CODE>PdfChunk</CODE> to the <CODE>PdfLine</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>chunk</CODE> - the <CODE>PdfChunk</CODE> to add<DT><B>Returns:</B><DD><CODE>null</CODE> if the chunk could be added completely; if not a <CODE>PdfChunk</CODE> containing the part of the chunk that could not be added is returned</DL></DD></DL><HR><A NAME="addToLine(com.lowagie.text.pdf.PdfChunk)"><!-- --></A><H3>addToLine</H3><PRE>private void <B>addToLine</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfChunk.html" title="class in com.lowagie.text.pdf">PdfChunk</A> chunk)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="size()"><!-- --></A><H3>size</H3><PRE>public int <B>size</B>()</PRE><DL><DD>Returns the number of chunks in the line.<P><DD><DL><DT><B>Returns:</B><DD>a value</DL></DD></DL><HR><A NAME="iterator()"><!-- --></A><H3>iterator</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A> <B>iterator</B>()</PRE><DL><DD>Returns an iterator of <CODE>PdfChunk</CODE>s.<P><DD><DL><DT><B>Returns:</B><DD>an <CODE>Iterator</CODE></DL></DD></DL><HR><A NAME="height()"><!-- --></A><H3>height</H3><PRE>float <B>height</B>()</PRE><DL><DD>Returns the height of the line.<P><DD><DL><DT><B>Returns:</B><DD>a value</DL></DD></DL><HR><A NAME="indentLeft()"><!-- --></A><H3>indentLeft</H3><PRE>float <B>indentLeft</B>()</PRE><DL><DD>Returns the left indentation of the line taking the alignment of the line into account.<P><DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -