public class TableCommonTable extends AbstractChart
baseFont, contentByte, document, writer| 构造器和说明 |
|---|
TableCommonTable() |
TableCommonTable(com.itextpdf.text.pdf.PdfWriter writer,
com.itextpdf.text.pdf.PdfContentByte contentByte,
com.itextpdf.text.Document document,
com.itextpdf.text.pdf.BaseFont baseFont) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected com.itextpdf.text.pdf.PdfPCell |
addOneCell(java.lang.String str,
float fontSize,
com.itextpdf.text.BaseColor fontColor,
com.itextpdf.text.BaseColor backColor,
com.itextpdf.text.BaseColor borderColor,
int style,
int align)
为了table的各个边框颜色不同
|
void |
chart()
具体画图,需要实现的方法
|
TableCommonTable |
setBorderColor(int borderColor)
表格边框的颜色
|
TableCommonTable |
setFirstColumnColors(java.lang.Integer firstColumnColors)
除了第一行的列,第一列背景颜色
|
TableCommonTable |
setFirstColumnFontColor(int firstColumnFontColor)
除了第一行的列,第一列文字颜色
|
TableCommonTable |
setFirstRowBackgroundColor(int firstRowBackgroundColor)
第一行的背景颜色
|
TableCommonTable |
setFirstRowFontColor(int firstRowFontColor)
第一行文字颜色
|
TableCommonTable |
setFirstRowFontSize(float firstRowFontSize)
第一行字体大小
|
TableCommonTable |
setFirstRowFontType(int firstRowFontType)
第一行字体样式
|
TableCommonTable |
setFontSize(float fontSize)
除了第一行,字体大小
|
TableCommonTable |
setOtherColumnAlign(int otherColumnAlign)
除了第一列,其它列位置
|
TableCommonTable |
setOtherColumnFontColor(int otherColumnFontColor)
除了第一列,其它文字颜色
|
TableCommonTable |
setRowColors(int[] rowColors)
除了第一行,行的交替背景颜色
|
TableCommonTable |
setRowDatas(java.util.List<java.lang.Object[]> rowDatas)
每一行的数据
|
TableCommonTable |
setRowHeight(float rowHeight)
每一行的高度
|
TableCommonTable |
setWidth(float width)
表格宽度
|
TableCommonTable |
setWidths(float[] widths)
每一列的宽度
|
setBaseFont, setContentByte, setDocument, setWriteraddBorderColorCell, addCell, addCell, addCell, calRealHeight, calTextWidth, moveCircle, moveLine, moveMultiLineText, moveMultiLineWText, moveRect, moveRoundRect, moveRoundRect, moveText, setLine, setLinepublic TableCommonTable()
public TableCommonTable(com.itextpdf.text.pdf.PdfWriter writer,
com.itextpdf.text.pdf.PdfContentByte contentByte,
com.itextpdf.text.Document document,
com.itextpdf.text.pdf.BaseFont baseFont)
public void chart()
AbstractChartchart 在类中 AbstractChartprotected com.itextpdf.text.pdf.PdfPCell addOneCell(java.lang.String str,
float fontSize,
com.itextpdf.text.BaseColor fontColor,
com.itextpdf.text.BaseColor backColor,
com.itextpdf.text.BaseColor borderColor,
int style,
int align)
str - type - style - fixedHeight - padding - public TableCommonTable setWidth(float width)
width - public TableCommonTable setRowDatas(java.util.List<java.lang.Object[]> rowDatas)
rowDatas - public TableCommonTable setRowColors(int[] rowColors)
rowColors - public TableCommonTable setFontSize(float fontSize)
fontSize - public TableCommonTable setBorderColor(int borderColor)
borderColor - public TableCommonTable setRowHeight(float rowHeight)
rowHeight - public TableCommonTable setWidths(float[] widths)
widths - public TableCommonTable setFirstRowFontType(int firstRowFontType)
firstRowFontType - public TableCommonTable setFirstRowBackgroundColor(int firstRowBackgroundColor)
firstRowBackgroundColor - public TableCommonTable setFirstRowFontColor(int firstRowFontColor)
firstRowFontColor - public TableCommonTable setFirstRowFontSize(float firstRowFontSize)
firstRowFontSize - public TableCommonTable setFirstColumnColors(java.lang.Integer firstColumnColors)
firstColumnColors - public TableCommonTable setFirstColumnFontColor(int firstColumnFontColor)
firstColumnFontColor - public TableCommonTable setOtherColumnFontColor(int otherColumnFontColor)
otherColumnFontColor - public TableCommonTable setOtherColumnAlign(int otherColumnAlign)
otherColumnAlign - Copyright © 2019. All Rights Reserved.