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.");
Modifier and Type | Field and Description |
---|---|
private int |
position
The tab position in twips.
|
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.
|
private int |
type
The tab alignment.
|
doc, inHeader, inTable
ACTION, attributes, BACKGROUND, CHAR_SPACING, COLOR, content, ENCODING, font, GENERICTAG, HSCALE, HYPHENATION, IMAGE, LOCALDESTINATION, LOCALGOTO, NEWLINE, NEWPAGE, NEXTPAGE, OBJECT_REPLACEMENT_CHARACTER, PDFANNOTATION, REMOTEGOTO, SEPARATOR, SKEW, SPLITCHARACTER, SUBSUPSCRIPT, TAB, TEXTRENDERMODE, UNDERLINE
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CELL, CHAPTER, CHUNK, CREATIONDATE, CREATOR, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE, YMARK
Constructor and Description |
---|
RtfTab(float position,
int type)
Constructs a new RtfTab with the given position and type.
|
Modifier and Type | Method and Description |
---|---|
void |
writeContent(java.io.OutputStream result)
Writes the tab settings.
|
intToByteArray, isEmpty, setInHeader, setInTable, setRtfDocument
append, getAttributes, getCharacterSpacing, getChunks, getContent, getFont, getHorizontalScaling, getHyphenation, getImage, getTextRise, getWidthPoint, hasAttributes, isContent, isNestable, process, setAction, setAnchor, setAnchor, setAnnotation, setAttributes, setBackground, setBackground, setCharacterSpacing, setFont, setGenericTag, setHorizontalScaling, setHyphenation, setLocalDestination, setLocalGoto, setNewPage, setRemoteGoto, setRemoteGoto, setSkew, setSplitCharacter, setTextRenderMode, setTextRise, setUnderline, setUnderline, toString, type
public static final int TAB_LEFT_ALIGN
public static final int TAB_CENTER_ALIGN
public static final int TAB_RIGHT_ALIGN
public static final int TAB_DECIMAL_ALIGN
private int position
private int type
public RtfTab(float position, int type)
position
- The position of the tab in points.type
- The tab type constant.public void writeContent(java.io.OutputStream result) throws java.io.IOException
writeContent
in interface RtfBasicElement
writeContent
in class RtfAddableElement
result
- The OutputStream
to write the content tojava.io.IOException