Package com.lowagie.text.pdf.events
Class IndexEvents
java.lang.Object
com.lowagie.text.pdf.PdfPageEventHelper
com.lowagie.text.pdf.events.IndexEvents
- All Implemented Interfaces:
PdfPageEvent
Class for an index.
- Author:
- Michael Niedermair
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCreate an index entry.voidCreate an index entry.voidCreate an index entry.Create an index entry.Create an index entry.Create an index entry.Returns the sorted list with the entries and the collected page numbers.voidonGenericTag(PdfWriter writer, Document document, Rectangle rect, String text) All the text that is passed to this event, gets registered in the indexentry.voidsetComparator(Comparator aComparator) Set the comparator.Methods inherited from class com.lowagie.text.pdf.PdfPageEventHelper
onChapter, onChapterEnd, onCloseDocument, onEndPage, onOpenDocument, onParagraph, onParagraphEnd, onSection, onSectionEnd, onStartPage
-
Constructor Details
-
IndexEvents
public IndexEvents()
-
-
Method Details
-
onGenericTag
All the text that is passed to this event, gets registered in the indexentry.- Specified by:
onGenericTagin interfacePdfPageEvent- Overrides:
onGenericTagin classPdfPageEventHelper- Parameters:
writer- thePdfWriterfor this documentdocument- the documentrect- theRectanglecontaining theChunktext- the text of the tag- See Also:
-
create
Create an index entry.- Parameters:
text- The text for the Chunk.in1- The first level.in2- The second level.in3- The third level.- Returns:
- Returns the Chunk.
-
create
Create an index entry.- Parameters:
text- The text for the Chunk.in1- The first level.- Returns:
- Returns the Chunk.
-
create
Create an index entry.- Parameters:
text- The text for the Chunk.in1- The first level.in2- The second level.- Returns:
- Returns the Chunk.
-
create
Create an index entry.- Parameters:
text- The text.in1- The first level.in2- The second level.in3- The third level.
-
create
Create an index entry.- Parameters:
text- The text.in1- The first level.
-
create
Create an index entry.- Parameters:
text- The text.in1- The first level.in2- The second level.
-
setComparator
Set the comparator.- Parameters:
aComparator- The comparator to set.
-
getSortedEntries
Returns the sorted list with the entries and the collected page numbers.- Returns:
- Returns the sorted list with the entries and the collected page numbers.
-