Example usage for com.lowagie.text Cell add

List of usage examples for com.lowagie.text Cell add

Introduction

In this page you can find the example usage for com.lowagie.text Cell add.

Prototype

public boolean add(Object o) 

Source Link

Document

Add an Object to this cell.

Usage

From source file:org.eclipse.osee.framework.ui.skynet.util.TableWriterAdaptor.java

License:Open Source License

public void writeRow(Table table, String... cellData) {
    for (String cellText : cellData) {
        Cell cell = new Cell();
        cell.setHeader(false);/*from  w  w  w.  j a  v a 2  s .  co m*/
        cell.setColspan(1);
        Font font = FontFactory.getFont("Times New Roman", BaseFont.CP1252, BaseFont.EMBEDDED, 9, Font.NORMAL,
                WebColors.getRGBColor("#000000"));
        Paragraph paragraph = new Paragraph(cellText, font);
        cell.add(paragraph);
        table.addCell(cell);
    }
}