public class RtfTOC extends Chunk implements RtfField
Modifier and Type | Field and Description |
---|---|
private boolean |
addTOCAsTOCEntry
Deprecated.
|
private java.lang.String |
defaultText
Deprecated.
|
private Font |
entryFont
Deprecated.
|
private java.lang.String |
entryName
Deprecated.
|
ACTION, attributes, BACKGROUND, COLOR, content, ENCODING, font, GENERICTAG, HSCALE, HYPHENATION, IMAGE, LOCALDESTINATION, LOCALGOTO, markupAttributes, NEWLINE, NEWPAGE, NEXTPAGE, OBJECT_REPLACEMENT_CHARACTER, PDFANNOTATION, REMOTEGOTO, SKEW, SPLITCHARACTER, SUBSUPSCRIPT, TEXTRENDERMODE, UNDERLINE
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, GRAPHIC, HEADER, IMGRAW, IMGTEMPLATE, JPEG, KEYWORDS, LIST, LISTITEM, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE
Constructor and Description |
---|
RtfTOC(java.lang.String tocName,
Font tocFont)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addTOCAsTOCEntry(java.lang.String entryName,
Font entryFont)
Deprecated.
Add a toc entry
|
void |
setDefaultText(java.lang.String text)
Deprecated.
Sets the default text of the Table of Contents
|
void |
write(RtfWriter writer,
java.io.OutputStream out)
Deprecated.
Writes an RTF field.
|
addToArray, append, content, font, getAttributes, getChunks, getHorizontalScaling, getImage, getKeySet, getMarkupAttribute, getMarkupAttributeNames, getMarkupAttributes, getTextRise, getWidthPoint, hasAttributes, isEmpty, isTag, process, setAction, setAnchor, setAnchor, setAnnotation, setBackground, setBackground, setFont, setGenericTag, setHorizontalScaling, setHyphenation, setLocalDestination, setLocalGoto, setMarkupAttribute, setMarkupAttributes, setNewPage, setRemoteGoto, setRemoteGoto, setSkew, setSplitCharacter, setTextRenderMode, setTextRise, setUnderline, setUnderline, toString, type
private java.lang.String defaultText
private boolean addTOCAsTOCEntry
private Font entryFont
private java.lang.String entryName
public RtfTOC(java.lang.String tocName, Font tocFont)
tocName
- the headline of the table of contentstocFont
- the font for the headlinepublic void write(RtfWriter writer, java.io.OutputStream out) throws java.io.IOException
RtfField
write
in interface RtfField
java.io.IOException
RtfField.write(com.lowagie.text.rtf.RtfWriter, java.io.OutputStream)
public void addTOCAsTOCEntry(java.lang.String entryName, Font entryFont)
entryName
- the name of the entryentryFont
- the font to be used for the entrypublic void setDefaultText(java.lang.String text)
text
- the default text