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: $Revision: 1.1 $
| 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 centre 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 | |
|---|---|
| byte[] | write()
Writes the tab settings. |
Parameters: position The position of the tab in points. type The tab type constant.