📄 pdfcell.html
字号:
<!-- ============ 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="addList(com.lowagie.text.List, float, float, int)"><!-- --></A><H3>addList</H3><PRE>private void <B>addList</B>(<A HREF="../../../../com/lowagie/text/List.html" title="class in com.lowagie.text">List</A> list, float left, float right, int alignment)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="setBottom(float)"><!-- --></A><H3>setBottom</H3><PRE>public void <B>setBottom</B>(float value)</PRE><DL><DD>Sets the bottom of the Rectangle and determines the proper {link #verticalOffset} to appropriately align the contents vertically.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/lowagie/text/Rectangle.html#setBottom(float)">setBottom</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text">Rectangle</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - </DL></DD></DL><HR><A NAME="getLeft()"><!-- --></A><H3>getLeft</H3><PRE>public float <B>getLeft</B>()</PRE><DL><DD>Returns the lower left x-coordinate.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/lowagie/text/Rectangle.html#getLeft()">getLeft</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text">Rectangle</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the lower left x-coordinate</DL></DD></DL><HR><A NAME="getRight()"><!-- --></A><H3>getRight</H3><PRE>public float <B>getRight</B>()</PRE><DL><DD>Returns the upper right x-coordinate.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/lowagie/text/Rectangle.html#getRight()">getRight</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text">Rectangle</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the upper right x-coordinate</DL></DD></DL><HR><A NAME="getTop()"><!-- --></A><H3>getTop</H3><PRE>public float <B>getTop</B>()</PRE><DL><DD>Returns the upper right y-coordinate.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/lowagie/text/Rectangle.html#getTop()">getTop</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text">Rectangle</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the upper right y-coordinate</DL></DD></DL><HR><A NAME="getBottom()"><!-- --></A><H3>getBottom</H3><PRE>public float <B>getBottom</B>()</PRE><DL><DD>Returns the lower left y-coordinate.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/lowagie/text/Rectangle.html#getBottom()">getBottom</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text">Rectangle</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the lower left y-coordinate</DL></DD></DL><HR><A NAME="addLine(com.lowagie.text.pdf.PdfLine)"><!-- --></A><H3>addLine</H3><PRE>private void <B>addLine</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfLine.html" title="class in com.lowagie.text.pdf">PdfLine</A> line)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="removeLine(int)"><!-- --></A><H3>removeLine</H3><PRE>private <A HREF="../../../../com/lowagie/text/pdf/PdfLine.html" title="class in com.lowagie.text.pdf">PdfLine</A> <B>removeLine</B>(int index)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="flushCurrentLine()"><!-- --></A><H3>flushCurrentLine</H3><PRE>private void <B>flushCurrentLine</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="firstLineRealHeight()"><!-- --></A><H3>firstLineRealHeight</H3><PRE>private float <B>firstLineRealHeight</B>()</PRE><DL><DD>Calculates what the height of the first line should be so that the content will be flush with the top. For text, this is the height of the ascender. For an image, it is the actual height of the image.<P><DD><DL><DT><B>Returns:</B><DD>the real height of the first line</DL></DD></DL><HR><A NAME="getBorderWidthInside(int)"><!-- --></A><H3>getBorderWidthInside</H3><PRE>private float <B>getBorderWidthInside</B>(int side)</PRE><DL><DD>Gets the amount of the border for the specified side that is inside the Rectangle. For non-variable width borders this is only 1/2 the border width on that side. This always returns 0 if <A HREF="../../../../com/lowagie/text/pdf/PdfCell.html#useBorderPadding"><CODE>useBorderPadding</CODE></A> is false;<P><DD><DL><DT><B>Parameters:</B><DD><CODE>side</CODE> - the side to check. One of the side constants in <A HREF="../../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text"><CODE>Rectangle</CODE></A><DT><B>Returns:</B><DD>the borderwidth inside the cell</DL></DD></DL><HR><A NAME="addImage(com.lowagie.text.Image, float, float, float, int)"><!-- --></A><H3>addImage</H3><PRE>private float <B>addImage</B>(<A HREF="../../../../com/lowagie/text/Image.html" title="class in com.lowagie.text">Image</A> i, float left, float right, float extraHeight, int alignment)</PRE><DL><DD>Adds an image to this Cell.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - the image to add<DD><CODE>left</CODE> - the left border<DD><CODE>right</CODE> - the right border<DD><CODE>extraHeight</CODE> - extra height to add above image<DD><CODE>alignment</CODE> - horizontal alignment (constant from Element class)<DT><B>Returns:</B><DD>the height of the image</DL></DD></DL><HR><A NAME="getLines(float, float)"><!-- --></A><H3>getLines</H3><PRE>public <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>getLines</B>(float top, float bottom)</PRE><DL><DD>Gets the lines of a cell that can be drawn between certain limits. <P> Remark: all the lines that can be drawn are removed from the object!<P><DD><DL><DT><B>Parameters:</B><DD><CODE>top</CODE> - the top of the part of the table that can be drawn<DD><CODE>bottom</CODE> - the bottom of the part of the table that can be drawn<DT><B>Returns:</B><DD>an <CODE>ArrayList</CODE> of <CODE>PdfLine</CODE>s</DL></DD></DL><HR><A NAME="getImages(float, float)"><!-- --></A><H3>getImages</H3><PRE>public <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>getImages</B>(float top, float bottom)</PRE><DL><DD>Gets the images of a cell that can be drawn between certain limits. <P> Remark: all the lines that can be drawn are removed from the object!<P><DD><DL><DT><B>Parameters:</B><DD><CODE>top</CODE> - the top of the part of the table that can be drawn<DD><CODE>bottom</CODE> - the bottom of the part of the table that can be drawn<DT><B>Returns:</B><DD>an <CODE>ArrayList</CODE> of <CODE>Image</CODE>s</DL></DD></DL><HR><A NAME="isHeader()"><!-- --></A><H3>isHeader</H3><PRE>boolean <B>isHeader</B>()</PRE><DL><DD>Checks if this cell belongs to the header of a <CODE>PdfTable</CODE>.<P><DD><DL><DT><B>Returns:</B><DD><CODE>void</CODE></DL></DD></DL><HR><A NAME="setHeader()"><!-- --></A><H3>setHeader</H3><PRE>void <B>setHeader</B>()</PRE><DL><DD>Indicates that this cell belongs to the header of a <CODE>PdfTable</CODE>.<P><DD><DL></DL></DD></DL><HR><A NAME="mayBeRemoved()"><!-- --></A><H3>mayBeRemoved</H3><PRE>boolean <B>mayBeRemoved</B>()</PRE><DL><DD>Checks if the cell may be removed. <P> Headers may always be removed, even if they are drawn only partially: they will be repeated on each following page anyway!<P><DD><DL><DT><B>Returns:</B><DD><CODE>true</CODE> if all the lines are already drawn; <CODE>false</CODE> otherwise.</DL></DD></DL><HR><A NAME="size()"><!-- --></A><H3>size</H3><PRE>public int <B>size</B>()</PRE><DL><DD>Returns the number of lines in the cell.<P><DD><DL><DT><B>Returns:</B><DD>a value</DL></DD></DL><HR><A NAME="remainingLinesHeight()"><!-- --></A><H3>remainingLinesHeight</H3><PRE>private float <B>remainingLinesHeight</B>()</PRE><DL><DD>Returns the total height of all the lines in the cell.<P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -