com.lowagie.text.rtf
Class RtfTOCEntry

java.lang.Object
  |
  +--com.lowagie.text.Chunk
        |
        +--com.lowagie.text.rtf.RtfTOCEntry
All Implemented Interfaces:
Element, MarkupAttributes, RtfField

public class RtfTOCEntry
extends Chunk
implements RtfField

This class can be used to insert entries for a table of contents into the RTF document. This class is based on the RtfWriter-package from Mark Hall.

Version:
$Revision: 1.4 $Date: 2003/05/02 09:01:36 $
Author:
Steffen.Stundzig@smb-tec.com

Field Summary
private  Font contentFont
           
private  Font entryFont
           
private  String entryName
           
private  boolean hidePageNumber
           
private  boolean hideText
           
 
Fields inherited from class com.lowagie.text.Chunk
ACTION, attributes, BACKGROUND, COLOR, content, ENCODING, font, GENERICTAG, HYPHENATION, IMAGE, LOCALDESTINATION, LOCALGOTO, markupAttributes, NEWLINE, NEWPAGE, OBJECT_REPLACEMENT_CHARACTER, PDFANNOTATION, REMOTEGOTO, SKEW, SPLITCHARACTER, STRIKETHRU, SUBSUPSCRIPT, TEXTRENDERMODE, UNDERLINE
 
Fields inherited from interface com.lowagie.text.Element
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, 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, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE
 
Constructor Summary
RtfTOCEntry(String content, Font contentFont)
           
RtfTOCEntry(String content, Font contentFont, String entryName, Font entryFont)
           
 
Method Summary
 void hidePageNumber()
           
 void hideText()
           
 void write(RtfWriter writer, OutputStream out)
           
private  void writeField(OutputStream out)
           
 
Methods inherited from class com.lowagie.text.Chunk
append, content, font, getAttributes, getChunks, getImage, getKeySet, getMarkupAttribute, getMarkupAttributeNames, getMarkupAttributes, hasAttributes, isEmpty, isTag, process, setAction, setAnchor, setAnchor, setAnnotation, setBackground, setFont, setGenericTag, setHyphenation, setLocalDestination, setLocalGoto, setMarkupAttribute, setMarkupAttributes, setNewPage, setRemoteGoto, setRemoteGoto, setSkew, setSplitCharacter, setTextRenderMode, setTextRise, type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.lowagie.text.Element
toString
 

Field Detail

hideText

private boolean hideText

hidePageNumber

private boolean hidePageNumber

entryName

private final String entryName

entryFont

private final Font entryFont

contentFont

private final Font contentFont
Constructor Detail

RtfTOCEntry

public RtfTOCEntry(String content,
                   Font contentFont)

RtfTOCEntry

public RtfTOCEntry(String content,
                   Font contentFont,
                   String entryName,
                   Font entryFont)
Method Detail

write

public void write(RtfWriter writer,
                  OutputStream out)
           throws IOException
Specified by:
write in interface RtfField
IOException

writeField

private void writeField(OutputStream out)
                 throws IOException
IOException

hideText

public void hideText()

hidePageNumber

public void hidePageNumber()