Examination_system/Examination_system-1/.svn/pristine/d7/d7fbbc587473c01f6d559f7136c...

36 lines
805 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.bonus.doc.planbudget;
import java.awt.Color;
import java.io.IOException;
import java.util.List;
import com.lowagie.text.BadElementException;
import com.lowagie.text.Cell;
import com.lowagie.text.Document;
import com.lowagie.text.DocumentException;
import com.lowagie.text.Element;
import com.lowagie.text.Font;
import com.lowagie.text.Paragraph;
import com.lowagie.text.Table;
import com.lowagie.text.rtf.style.RtfFont;
public class CreateTable {
/**
* 添加cell以及样式
*
* @param cell
* @param table
* @return table
*/
public static Table addCellStyle(Cell cell, Table table) {
table.addCell(cell);
cell.setVerticalAlignment(Element.ALIGN_MIDDLE);
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
return table;
}
}