📄 pdfline.html
字号:
<DT><B>Returns:</B><DD>a value</DL></DD></DL><HR><A NAME="hasToBeJustified()"><!-- --></A><H3>hasToBeJustified</H3><PRE>public boolean <B>hasToBeJustified</B>()</PRE><DL><DD>Checks if this line has to be justified.<P><DD><DL><DT><B>Returns:</B><DD><CODE>true</CODE> if the alignment equals <VAR>ALIGN_JUSTIFIED</VAR> and there is some width left.</DL></DD></DL><HR><A NAME="resetAlignment()"><!-- --></A><H3>resetAlignment</H3><PRE>public void <B>resetAlignment</B>()</PRE><DL><DD>Resets the alignment of this line. <P> The alignment of the last line of for instance a <CODE>Paragraph</CODE> that has to be justified, has to be reset to <VAR>ALIGN_LEFT</VAR>.<P><DD><DL></DL></DD></DL><HR><A NAME="setExtraIndent(float)"><!-- --></A><H3>setExtraIndent</H3><PRE>void <B>setExtraIndent</B>(float extra)</PRE><DL><DD>Adds extra indentation to the left (for Paragraph.setFirstLineIndent).<P><DD><DL></DL></DD></DL><HR><A NAME="widthLeft()"><!-- --></A><H3>widthLeft</H3><PRE>float <B>widthLeft</B>()</PRE><DL><DD>Returns the width that is left, after a maximum of characters is added to the line.<P><DD><DL><DT><B>Returns:</B><DD>a value</DL></DD></DL><HR><A NAME="numberOfSpaces()"><!-- --></A><H3>numberOfSpaces</H3><PRE>int <B>numberOfSpaces</B>()</PRE><DL><DD>Returns the number of space-characters in this line.<P><DD><DL><DT><B>Returns:</B><DD>a value</DL></DD></DL><HR><A NAME="setListItem(com.lowagie.text.ListItem)"><!-- --></A><H3>setListItem</H3><PRE>public void <B>setListItem</B>(<A HREF="../../../../com/lowagie/text/ListItem.html" title="class in com.lowagie.text">ListItem</A> listItem)</PRE><DL><DD>Sets the listsymbol of this line. <P> This is only necessary for the first line of a <CODE>ListItem</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listItem</CODE> - the list symbol</DL></DD></DL><HR><A NAME="listSymbol()"><!-- --></A><H3>listSymbol</H3><PRE>public <A HREF="../../../../com/lowagie/text/Chunk.html" title="class in com.lowagie.text">Chunk</A> <B>listSymbol</B>()</PRE><DL><DD>Returns the listsymbol of this line.<P><DD><DL><DT><B>Returns:</B><DD>a <CODE>PdfChunk</CODE> if the line has a listsymbol; <CODE>null</CODE> otherwise</DL></DD></DL><HR><A NAME="listIndent()"><!-- --></A><H3>listIndent</H3><PRE>public float <B>listIndent</B>()</PRE><DL><DD>Return the indentation needed to show the listsymbol.<P><DD><DL><DT><B>Returns:</B><DD>a value</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <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> <B>toString</B>()</PRE><DL><DD>Get the string representation of what is in this line.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><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></CODE> in class <CODE><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></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <CODE>String</CODE></DL></DD></DL><HR><A NAME="GetLineLengthUtf32()"><!-- --></A><H3>GetLineLengthUtf32</H3><PRE>public int <B>GetLineLengthUtf32</B>()</PRE><DL><DD>Returns the length of a line in UTF32 characters<P><DD><DL><DT><B>Returns:</B><DD>the length in UTF32 characters<DT><B>Since:</B></DT> <DD>2.1.2</DD></DL></DD></DL><HR><A NAME="isNewlineSplit()"><!-- --></A><H3>isNewlineSplit</H3><PRE>public boolean <B>isNewlineSplit</B>()</PRE><DL><DD>Checks if a newline caused the line split.<P><DD><DL><DT><B>Returns:</B><DD><CODE>true</CODE> if a newline caused the line split</DL></DD></DL><HR><A NAME="getLastStrokeChunk()"><!-- --></A><H3>getLastStrokeChunk</H3><PRE>public int <B>getLastStrokeChunk</B>()</PRE><DL><DD>Gets the index of the last <CODE>PdfChunk</CODE> with metric attributes<P><DD><DL><DT><B>Returns:</B><DD>the last <CODE>PdfChunk</CODE> with metric attributes</DL></DD></DL><HR><A NAME="getChunk(int)"><!-- --></A><H3>getChunk</H3><PRE>public <A HREF="../../../../com/lowagie/text/pdf/PdfChunk.html" title="class in com.lowagie.text.pdf">PdfChunk</A> <B>getChunk</B>(int idx)</PRE><DL><DD>Gets a <CODE>PdfChunk</CODE> by index.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>idx</CODE> - the index<DT><B>Returns:</B><DD>the <CODE>PdfChunk</CODE> or null if beyond the array</DL></DD></DL><HR><A NAME="getOriginalWidth()"><!-- --></A><H3>getOriginalWidth</H3><PRE>public float <B>getOriginalWidth</B>()</PRE><DL><DD>Gets the original width of the line.<P><DD><DL><DT><B>Returns:</B><DD>the original width of the line</DL></DD></DL><HR><A NAME="getMaxSizeSimple()"><!-- --></A><H3>getMaxSizeSimple</H3><PRE>float <B>getMaxSizeSimple</B>()</PRE><DL><DD>Gets the maximum size of all the fonts used in this line including images.<P><DD><DL><DT><B>Returns:</B><DD>maximum size of all the fonts used in this line</DL></DD></DL><HR><A NAME="isRTL()"><!-- --></A><H3>isRTL</H3><PRE>boolean <B>isRTL</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getSeparatorCount()"><!-- --></A><H3>getSeparatorCount</H3><PRE>int <B>getSeparatorCount</B>()</PRE><DL><DD>Gets the number of separators in the line.<P><DD><DL><DT><B>Returns:</B><DD>the number of separators in the line<DT><B>Since:</B></DT> <DD>2.1.2</DD></DL></DD></DL><HR><A NAME="getWidthCorrected(float, float)"><!-- --></A><H3>getWidthCorrected</H3><PRE>public float <B>getWidthCorrected</B>(float charSpacing, float wordSpacing)</PRE><DL><DD>Gets a width corrected with a charSpacing and wordSpacing.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>charSpacing</CODE> - <DD><CODE>wordSpacing</CODE> - <DT><B>Returns:</B><DD>a corrected width</DL></DD></DL><HR><A NAME="getAscender()"><!-- --></A><H3>getAscender</H3><PRE>public float <B>getAscender</B>()</PRE><DL><DD>Gets the maximum size of the ascender for all the fonts used in this line.<P><DD><DL><DT><B>Returns:</B><DD>maximum size of all the ascenders used in this line</DL></DD></DL><HR><A NAME="getDescender()"><!-- --></A><H3>getDescender</H3><PRE>public float <B>getDescender</B>()</PRE><DL><DD>Gets the biggest descender for all the fonts used in this line. Note that this is a negative number.<P><DD><DL><DT><B>Returns:</B><DD>maximum size of all the ascenders used in this line</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>Hosted by <a href="http://www.hostbasket.com/">Hostbasket</a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/lowagie/text/pdf/PdfLayerMembership.html" title="class in com.lowagie.text.pdf"><B>PREV CLASS</B></A> <A HREF="../../../../com/lowagie/text/pdf/PdfLister.html" title="class in com.lowagie.text.pdf"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/lowagie/text/pdf/PdfLine.html" target="_top"><B>FRAMES</B></A> <A HREF="PdfLine.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -