Example usage for com.lowagie.text ElementTags BGBLUE

List of usage examples for com.lowagie.text ElementTags BGBLUE

Introduction

In this page you can find the example usage for com.lowagie.text ElementTags BGBLUE.

Prototype

String BGBLUE

To view the source code for com.lowagie.text ElementTags BGBLUE.

Click Source Link

Document

attribute of the table/cell tag

Usage

From source file:org.apache.maven.doxia.module.itext.ITextSink.java

License:Apache License

/** {@inheritDoc} */
public void tableHeaderCell() {
    writeStartElement(ElementTags.CELL);
    writeAddAttribute(ElementTags.LEFT, Boolean.TRUE.toString());
    writeAddAttribute(ElementTags.RIGHT, Boolean.TRUE.toString());
    writeAddAttribute(ElementTags.TOP, Boolean.TRUE.toString());
    writeAddAttribute(ElementTags.BOTTOM, Boolean.TRUE.toString());
    writeAddAttribute(ElementTags.HEADER, Boolean.TRUE.toString());
    writeAddAttribute(ElementTags.BGRED, Color.GRAY.getRed());
    writeAddAttribute(ElementTags.BGBLUE, Color.GRAY.getBlue());
    writeAddAttribute(ElementTags.BGGREEN, Color.GRAY.getGreen());
    writeAddAttribute(ElementTags.HORIZONTALALIGN, ElementTags.ALIGN_CENTER);

    actionContext.setAction(SinkActionContext.TABLE_HEADER_CELL);
}