Example usage for com.lowagie.text ElementTags IMAGE

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

Introduction

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

Prototype

String IMAGE

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

Click Source Link

Document

the image tag

Usage

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

License:Apache License

/** {@inheritDoc} */
public void figure() {
    figureDefined = true;/* ww w .  jav  a  2 s.  c  o m*/

    writeStartElement(ElementTags.CHUNK);
    writeAddAttribute(ElementTags.FONT, font.getFontName());
    writeAddAttribute(ElementTags.SIZE, font.getFontSize());
    writeAddAttribute(ElementTags.STYLE, font.getFontStyle());
    writeAddAttribute(ElementTags.BLUE, font.getFontColorBlue());
    writeAddAttribute(ElementTags.GREEN, font.getFontColorGreen());
    writeAddAttribute(ElementTags.RED, font.getFontColorRed());

    writeStartElement(ElementTags.IMAGE);

    actionContext.setAction(SinkActionContext.FIGURE);
}