📄 simplecell.html
字号:
<HR><A NAME="useBorderPadding"><!-- --></A><H3>useBorderPadding</H3><PRE>protected boolean <B>useBorderPadding</B></PRE><DL><DD>Adjusts the cell contents to compensate for border widths. Note that this only has an effect when rendered to PDF.<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="SimpleCell(boolean)"><!-- --></A><H3>SimpleCell</H3><PRE>public <B>SimpleCell</B>(boolean row)</PRE><DL><DD>A CellAttributes object is always constructed without any dimensions. Dimensions are defined after creation.<P><DL><DT><B>Parameters:</B><DD><CODE>row</CODE> - only true if the CellAttributes object represents a row.</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="addElement(com.lowagie.text.Element)"><!-- --></A><H3>addElement</H3><PRE>public void <B>addElement</B>(<A HREF="../../../com/lowagie/text/Element.html" title="interface in com.lowagie.text">Element</A> 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="createCell(com.lowagie.text.SimpleCell)"><!-- --></A><H3>createCell</H3><PRE>public <A HREF="../../../com/lowagie/text/Cell.html" title="class in com.lowagie.text">Cell</A> <B>createCell</B>(<A HREF="../../../com/lowagie/text/SimpleCell.html" title="class in com.lowagie.text">SimpleCell</A> rowAttributes) throws <A HREF="../../../com/lowagie/text/BadElementException.html" title="class in com.lowagie.text">BadElementException</A></PRE><DL><DD>Creates a Cell with these attributes.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rowAttributes</CODE> - <DT><B>Returns:</B><DD>a cell based on these attributes.<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="createPdfPCell(com.lowagie.text.SimpleCell)"><!-- --></A><H3>createPdfPCell</H3><PRE>public <A HREF="../../../com/lowagie/text/pdf/PdfPCell.html" title="class in com.lowagie.text.pdf">PdfPCell</A> <B>createPdfPCell</B>(<A HREF="../../../com/lowagie/text/SimpleCell.html" title="class in com.lowagie.text">SimpleCell</A> rowAttributes)</PRE><DL><DD>Creates a PdfPCell with these attributes.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rowAttributes</CODE> - <DT><B>Returns:</B><DD>a PdfPCell based on these attributes.</DL></DD></DL><HR><A NAME="getDimensionlessInstance(com.lowagie.text.Rectangle, float)"><!-- --></A><H3>getDimensionlessInstance</H3><PRE>public static <A HREF="../../../com/lowagie/text/SimpleCell.html" title="class in com.lowagie.text">SimpleCell</A> <B>getDimensionlessInstance</B>(<A HREF="../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text">Rectangle</A> rectangle, float 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="cellLayout(com.lowagie.text.pdf.PdfPCell, com.lowagie.text.Rectangle, com.lowagie.text.pdf.PdfContentByte[])"><!-- --></A><H3>cellLayout</H3><PRE>public void <B>cellLayout</B>(<A HREF="../../../com/lowagie/text/pdf/PdfPCell.html" title="class in com.lowagie.text.pdf">PdfPCell</A> cell, <A HREF="../../../com/lowagie/text/Rectangle.html" title="class in com.lowagie.text">Rectangle</A> position, <A HREF="../../../com/lowagie/text/pdf/PdfContentByte.html" title="class in com.lowagie.text.pdf">PdfContentByte</A>[] canvases)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../com/lowagie/text/pdf/PdfPCellEvent.html#cellLayout(com.lowagie.text.pdf.PdfPCell, com.lowagie.text.Rectangle, com.lowagie.text.pdf.PdfContentByte[])">PdfPCellEvent</A></CODE></B></DD><DD>This method is called at the end of the cell 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 cell. <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 cell. </ul> The layers are placed in sequence on top of each other. <p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/pdf/PdfPCellEvent.html#cellLayout(com.lowagie.text.pdf.PdfPCell, com.lowagie.text.Rectangle, com.lowagie.text.pdf.PdfContentByte[])">cellLayout</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/pdf/PdfPCellEvent.html" title="interface in com.lowagie.text.pdf">PdfPCellEvent</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>cell</CODE> - the cell<DD><CODE>position</CODE> - the coordinates of the cell<DD><CODE>canvases</CODE> - an array of <CODE>PdfContentByte</CODE><DT><B>See Also:</B><DD><A HREF="../../../com/lowagie/text/pdf/PdfPCellEvent.html#cellLayout(com.lowagie.text.pdf.PdfPCell, com.lowagie.text.Rectangle, com.lowagie.text.pdf.PdfContentByte[])"><CODE>PdfPCellEvent.cellLayout(com.lowagie.text.pdf.PdfPCell, com.lowagie.text.Rectangle, com.lowagie.text.pdf.PdfContentByte[])</CODE></A></DL></DD></DL><HR><A NAME="setPadding(float)"><!-- --></A><H3>setPadding</H3><PRE>public void <B>setPadding</B>(float padding)</PRE><DL><DD>Sets the padding parameters if they are undefined.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>padding</CODE> - </DL></DD></DL><HR><A NAME="getColspan()"><!-- --></A><H3>getColspan</H3><PRE>public int <B>getColspan</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Returns the colspan.</DL></DD></DL><HR><A NAME="setColspan(int)"><!-- --></A><H3>setColspan</H3><PRE>public void <B>setColspan</B>(int colspan)</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>colspan</CODE> - The colspan to set.</DL></DD></DL><HR><A NAME="getPadding_bottom()"><!-- --></A><H3>getPadding_bottom</H3><PRE>public float <B>getPadding_bottom</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Returns the padding_bottom.</DL></DD></DL><HR><A NAME="setPadding_bottom(float)"><!-- --></A><H3>setPadding_bottom</H3><PRE>public void <B>setPadding_bottom</B>(float padding_bottom)</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>padding_bottom</CODE> - The padding_bottom to set.</DL></DD></DL><HR><A NAME="getPadding_left()"><!-- --></A><H3>getPadding_left</H3><PRE>public float <B>getPadding_left</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Returns the padding_left.</DL></DD></DL><HR><A NAME="setPadding_left(float)"><!-- --></A><H3>setPadding_left</H3><PRE>public void <B>setPadding_left</B>(float padding_left)</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>padding_left</CODE> - The padding_left to set.</DL></DD></DL><HR><A NAME="getPadding_right()"><!-- --></A><H3>getPadding_right</H3><PRE>public float <B>getPadding_right</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Returns the padding_right.</DL></DD></DL><HR><A NAME="setPadding_right(float)"><!-- --></A><H3>setPadding_right</H3><PRE>public void <B>setPadding_right</B>(float padding_right)</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>padding_right</CODE> - The padding_right to set.</DL></DD></DL><HR><A NAME="getPadding_top()"><!-- --></A><H3>getPadding_top</H3><PRE>public float <B>getPadding_top</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Returns the padding_top.</DL></DD></DL><HR><A NAME="setPadding_top(float)"><!-- --></A><H3>setPadding_top</H3><PRE>public void <B>setPadding_top</B>(float padding_top)</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>padding_top</CODE> - The padding_top to set.</DL></DD></DL><HR><A NAME="getSpacing_left()"><!-- --></A><H3>getSpacing_left</H3><PRE>public float <B>getSpacing_left</B>()</PRE><DL><DD><DL></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -