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

📄 simpletable.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<DL></DL></DL><HR><A NAME="cellpadding"><!-- --></A><H3>cellpadding</H3><PRE>private float <B>cellpadding</B></PRE><DL><DD>the padding of the Cells.<P><DL></DL></DL><HR><A NAME="alignment"><!-- --></A><H3>alignment</H3><PRE>private int <B>alignment</B></PRE><DL><DD>the alignment of the table.<P><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="SimpleTable()"><!-- --></A><H3>SimpleTable</H3><PRE>public <B>SimpleTable</B>()</PRE><DL><DD>A RectangleCell is always constructed without any dimensions. Dimensions are defined after creation.<P></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="addElement(com.lowagie.text.SimpleCell)"><!-- --></A><H3>addElement</H3><PRE>public void <B>addElement</B>(<A HREF="../../../com/lowagie/text/SimpleCell.html" title="class in com.lowagie.text">SimpleCell</A>&nbsp;element)                throws <A HREF="../../../com/lowagie/text/BadElementException.html" title="class in com.lowagie.text">BadElementException</A></PRE><DL><DD>Adds content to this object.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - <DT><B>Throws:</B><DD><CODE><A HREF="../../../com/lowagie/text/BadElementException.html" title="class in com.lowagie.text">BadElementException</A></CODE></DL></DD></DL><HR><A NAME="createTable()"><!-- --></A><H3>createTable</H3><PRE>public <A HREF="../../../com/lowagie/text/Table.html" title="class in com.lowagie.text">Table</A> <B>createTable</B>()                  throws <A HREF="../../../com/lowagie/text/BadElementException.html" title="class in com.lowagie.text">BadElementException</A></PRE><DL><DD>Creates a Table object based on this TableAttributes object.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a com.lowagie.text.Table object<DT><B>Throws:</B><DD><CODE><A HREF="../../../com/lowagie/text/BadElementException.html" title="class in com.lowagie.text">BadElementException</A></CODE></DL></DD></DL><HR><A NAME="createPdfPTable()"><!-- --></A><H3>createPdfPTable</H3><PRE>public <A HREF="../../../com/lowagie/text/pdf/PdfPTable.html" title="class in com.lowagie.text.pdf">PdfPTable</A> <B>createPdfPTable</B>()                          throws <A HREF="../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></PRE><DL><DD>Creates a PdfPTable object based on this TableAttributes object.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a com.lowagie.text.pdf.PdfPTable object<DT><B>Throws:</B><DD><CODE><A HREF="../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></CODE></DL></DD></DL><HR><A NAME="getDimensionlessInstance(com.lowagie.text.Rectangle, float)"><!-- --></A><H3>getDimensionlessInstance</H3><PRE>public static <A HREF="../../../com/lowagie/text/SimpleTable.html" title="class in com.lowagie.text">SimpleTable</A> <B>getDimensionlessInstance</B>(<A HREF="../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text">Rectangle</A>&nbsp;rectangle,                                                   float&nbsp;spacing)</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rectangle</CODE> - <DD><CODE>spacing</CODE> - <DT><B>Returns:</B><DD>a rectangle</DL></DD></DL><HR><A NAME="tableLayout(com.lowagie.text.pdf.PdfPTable, float[][], float[], int, int, com.lowagie.text.pdf.PdfContentByte[])"><!-- --></A><H3>tableLayout</H3><PRE>public void <B>tableLayout</B>(<A HREF="../../../com/lowagie/text/pdf/PdfPTable.html" title="class in com.lowagie.text.pdf">PdfPTable</A>&nbsp;table,                        float[][]&nbsp;widths,                        float[]&nbsp;heights,                        int&nbsp;headerRows,                        int&nbsp;rowStart,                        <A HREF="../../../com/lowagie/text/pdf/PdfContentByte.html" title="class in com.lowagie.text.pdf">PdfContentByte</A>[]&nbsp;canvases)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../com/lowagie/text/pdf/PdfPTableEvent.html#tableLayout(com.lowagie.text.pdf.PdfPTable, float[][], float[], int, int, com.lowagie.text.pdf.PdfContentByte[])">PdfPTableEvent</A></CODE></B></DD><DD>This method is called at the end of the table rendering. The text or graphics are added to one of the 4 <CODE>PdfContentByte</CODE> contained in <CODE>canvases</CODE>.<br> The indexes to <CODE>canvases</CODE> are:<p> <ul> <li><CODE>PdfPTable.BASECANVAS</CODE> - the original <CODE>PdfContentByte</CODE>. Anything placed here will be under the table. <li><CODE>PdfPTable.BACKGROUNDCANVAS</CODE> - the layer where the background goes to. <li><CODE>PdfPTable.LINECANVAS</CODE> - the layer where the lines go to. <li><CODE>PdfPTable.TEXTCANVAS</CODE> - the layer where the text go to. Anything placed here will be over the table. </ul> The layers are placed in sequence on top of each other. <p> The <CODE>widths</CODE> and <CODE>heights</CODE> have the coordinates of the cells.<br> The size of the <CODE>widths</CODE> array is the number of rows. Each sub-array in <CODE>widths</CODE> corresponds to the x column border positions where the first element is the x coordinate of the left table border and the last element is the x coordinate of the right table border.  If colspan is not used all the sub-arrays in <CODE>widths</CODE> are the same.<br> For the <CODE>heights</CODE> the first element is the y coordinate of the top table border and the last element is the y coordinate of the bottom table border.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/pdf/PdfPTableEvent.html#tableLayout(com.lowagie.text.pdf.PdfPTable, float[][], float[], int, int, com.lowagie.text.pdf.PdfContentByte[])">tableLayout</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/pdf/PdfPTableEvent.html" title="interface in com.lowagie.text.pdf">PdfPTableEvent</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>table</CODE> - the <CODE>PdfPTable</CODE> in use<DD><CODE>widths</CODE> - an array of arrays with the cells' x positions. It has the length of the number of rows<DD><CODE>heights</CODE> - an array with the cells' y positions. It has a length of the number of rows + 1<DD><CODE>headerRows</CODE> - the number of rows defined for the header.<DD><CODE>rowStart</CODE> - the first row number after the header<DD><CODE>canvases</CODE> - an array of <CODE>PdfContentByte</CODE><DT><B>See Also:</B><DD><A HREF="../../../com/lowagie/text/pdf/PdfPTableEvent.html#tableLayout(com.lowagie.text.pdf.PdfPTable, float[][], float[], int, int, com.lowagie.text.pdf.PdfContentByte[])"><CODE>PdfPTableEvent.tableLayout(com.lowagie.text.pdf.PdfPTable, float[][], float[], int, int, com.lowagie.text.pdf.PdfContentByte[])</CODE></A></DL></DD></DL><HR><A NAME="getCellpadding()"><!-- --></A><H3>getCellpadding</H3><PRE>public float <B>getCellpadding</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Returns the cellpadding.</DL></DD></DL><HR><A NAME="setCellpadding(float)"><!-- --></A><H3>setCellpadding</H3><PRE>public void <B>setCellpadding</B>(float&nbsp;cellpadding)</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>cellpadding</CODE> - The cellpadding to set.</DL></DD></DL><HR><A NAME="getCellspacing()"><!-- --></A><H3>getCellspacing</H3><PRE>public float <B>getCellspacing</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Returns the cellspacing.</DL></DD></DL><HR><A NAME="setCellspacing(float)"><!-- --></A><H3>

⌨️ 快捷键说明

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