List of usage examples for com.lowagie.text ElementTags COLUMNS
String COLUMNS
To view the source code for com.lowagie.text ElementTags COLUMNS.
Click Source Link
From source file:org.apache.maven.doxia.module.itext.ITextSink.java
License:Apache License
/** {@inheritDoc} */ public void tableRows(int[] justification, boolean grid) { // ElementTags.TABLE writeAddAttribute(ElementTags.COLUMNS, justification.length); actionContext.setAction(SinkActionContext.TABLE_ROWS); }
From source file:org.apache.maven.doxia.module.itext.ITextSink.java
License:Apache License
/** {@inheritDoc} */ public void verbatim(boolean boxed) { // Always boxed 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.TABLE); writeAddAttribute(ElementTags.COLUMNS, "1"); 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.ALIGN, ElementTags.ALIGN_CENTER); writeAddAttribute(ElementTags.TABLEFITSPAGE, Boolean.TRUE.toString()); writeAddAttribute(ElementTags.CELLSFITPAGE, Boolean.TRUE.toString()); writeAddAttribute(ElementTags.CELLPADDING, "10"); writeAddAttribute(ElementTags.WIDTH, "100.0%"); writeStartElement(ElementTags.ROW);//from w ww . java 2 s . com 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()); actionContext.setAction(SinkActionContext.VERBATIM); }