Example usage for com.lowagie.text ElementTags HORIZONTALALIGN

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

Introduction

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

Prototype

String HORIZONTALALIGN

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

Click Source Link

Document

attribute of the cell tag

Usage

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

License:Apache License

/** {@inheritDoc} */
public void tableCell() {
    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.HORIZONTALALIGN, ElementTags.ALIGN_LEFT);

    actionContext.setAction(SinkActionContext.TABLE_CELL);
}

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);
}