com.lowagie.text.rtf.text
public class RtfTab extends RtfAddableElement
RtfTab tab = new RtfTab(300, RtfTab.TAB_LEFT_ALIGN);
Paragraph para = new Paragraph();
para.add(tab);
para.add("This paragraph has a\ttab defined.");
Version: $Id: RtfTab.java 3373 2008-05-12 16:21:24Z xlv $
| Field Summary | |
|---|---|
| int | position
The tab position in twips. |
| int | type
The tab alignment. |
| static int | TAB_CENTER_ALIGN
A tab where the text is center aligned. |
| static int | TAB_DECIMAL_ALIGN
A tab where the text is aligned on the decimal character. |
| static int | TAB_LEFT_ALIGN
A tab where the text is left aligned. |
| static int | TAB_RIGHT_ALIGN
A tab where the text is right aligned. |
| Constructor Summary | |
|---|---|
| RtfTab(float position, int type)
Constructs a new RtfTab with the given position and type. | |
| Method Summary | |
|---|---|
| void | writeContent(OutputStream result)
Writes the tab settings. |
Parameters: position The position of the tab in points. type The tab type constant.