Overview  Package   Class  Tree  Index 

be.lassi.pdf
Class TableOfContents

java.lang.Object
  extended by com.lowagie.text.pdf.PdfPageEventHelper
      extended by be.lassi.pdf.TableOfContents
All Implemented Interfaces:
com.lowagie.text.pdf.PdfPageEvent, java.lang.Iterable<TableOfContentsEntry>

public class TableOfContents
extends com.lowagie.text.pdf.PdfPageEventHelper
implements java.lang.Iterable<TableOfContentsEntry>


Field Summary
 int pageOffset
           
 int state
           
static int STATE_CONTENTS
           
static int STATE_TITLE_PAGE
           
static int STATE_TOC
           
 
Constructor Summary
TableOfContents()
           
 
Method Summary
 void add(TableOfContentsEntry entry)
           
 java.util.Iterator<TableOfContentsEntry> iterator()
           
 void onEndPage(com.lowagie.text.pdf.PdfWriter writer, com.lowagie.text.Document document)
           Prints the page number at the end of the page; prints a roman number if we are generating a table of contents page, otherwise a regular page number.
 void onGenericTag(com.lowagie.text.pdf.PdfWriter writer, com.lowagie.text.Document document, com.lowagie.text.Rectangle bounds, java.lang.String tag)
           
 void onStartPage(com.lowagie.text.pdf.PdfWriter writer, com.lowagie.text.Document document)
           
 
Methods inherited from class com.lowagie.text.pdf.PdfPageEventHelper
onChapter, onChapterEnd, onCloseDocument, onOpenDocument, onParagraph, onParagraphEnd, onSection, onSectionEnd
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pageOffset

public int pageOffset

state

public int state

STATE_CONTENTS

public static final int STATE_CONTENTS
See Also:
Constant Field Values

STATE_TITLE_PAGE

public static final int STATE_TITLE_PAGE
See Also:
Constant Field Values

STATE_TOC

public static final int STATE_TOC
See Also:
Constant Field Values
Constructor Detail

TableOfContents

public TableOfContents()
Method Detail

add

public void add(TableOfContentsEntry entry)

iterator

public java.util.Iterator<TableOfContentsEntry> iterator()
Specified by:
iterator in interface java.lang.Iterable<TableOfContentsEntry>

onEndPage

public void onEndPage(com.lowagie.text.pdf.PdfWriter writer,
                      com.lowagie.text.Document document)
Prints the page number at the end of the page; prints a roman number if we are generating a table of contents page, otherwise a regular page number.

Specified by:
onEndPage in interface com.lowagie.text.pdf.PdfPageEvent
Overrides:
onEndPage in class com.lowagie.text.pdf.PdfPageEventHelper

onGenericTag

public void onGenericTag(com.lowagie.text.pdf.PdfWriter writer,
                         com.lowagie.text.Document document,
                         com.lowagie.text.Rectangle bounds,
                         java.lang.String tag)
Specified by:
onGenericTag in interface com.lowagie.text.pdf.PdfPageEvent
Overrides:
onGenericTag in class com.lowagie.text.pdf.PdfPageEventHelper

onStartPage

public void onStartPage(com.lowagie.text.pdf.PdfWriter writer,
                        com.lowagie.text.Document document)
Specified by:
onStartPage in interface com.lowagie.text.pdf.PdfPageEvent
Overrides:
onStartPage in class com.lowagie.text.pdf.PdfPageEventHelper

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2