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 2776 2007-05-23 20:01:40Z hallm $
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. |
void | writeContent(OutputStream result)
Writes the tab settings. |
Parameters: position The position of the tab in points. type The tab type constant.
Deprecated: replaced by writeContent
Writes the tab settings.