public class RtfTOC extends Chunk implements RtfField
Modifier and Type | Field and Description |
---|---|
private boolean |
addTOCAsTOCEntry
Deprecated.
|
private String |
defaultText
Deprecated.
|
private Font |
entryFont
Deprecated.
|
private String |
entryName
Deprecated.
|
ACTION, attributes, BACKGROUND, 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
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 |
---|
RtfTOC(String tocName,
Font tocFont)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addTOCAsTOCEntry(String entryName,
Font entryFont)
Deprecated.
Add a toc entry
|
void |
setDefaultText(String text)
Deprecated.
Sets the default text of the Table of Contents
|
void |
write(RtfWriter writer,
OutputStream out)
Deprecated.
Writes an RTF field.
|
append, getAttributes, getChunks, getContent, getFont, getHorizontalScaling, getHyphenation, getImage, getTextRise, getWidthPoint, hasAttributes, isContent, isEmpty, isNestable, process, setAction, setAnchor, setAnchor, setAnnotation, setAttributes, setBackground, setBackground, setFont, setGenericTag, setHorizontalScaling, setHyphenation, setLocalDestination, setLocalGoto, setNewPage, setRemoteGoto, setRemoteGoto, setSkew, setSplitCharacter, setTextRenderMode, setTextRise, setUnderline, setUnderline, toString, type
private String defaultText
private boolean addTOCAsTOCEntry
private Font entryFont
private String entryName
public void write(RtfWriter writer, OutputStream out) throws IOException
RtfField
write
in interface RtfField
IOException
RtfField.write(com.lowagie.text.rtf.RtfWriter, java.io.OutputStream)
public void addTOCAsTOCEntry(String entryName, Font entryFont)
entryName
- the name of the entryentryFont
- the font to be used for the entrypublic void setDefaultText(String text)
text
- the default text