Public Member Functions | |
PDFOutline (String title, PDFPage dest) | |
PDFOutline (String title, PDFPage dest, int l, int b, int r, int t) | |
PDFOutline | add (String title, PDFPage dest) |
PDFOutline | add (String title, PDFPage dest, int x, int y, int w, int h) |
void | add (PDFOutline outline) |
void | write (OutputStream os) throws IOException |
Enumeration | elements () |
Protected Member Functions | |
PDFOutline () | |
int | getIndex (PDFOutline outline) |
int | getLast () |
PDFOutline | getNode (int i) |
int | descendants () |
Protected Attributes | |
PDFOutline | parent |
Package Attributes | |
PDFPage | dest |
int | l |
int | b |
int | r |
int | t |
boolean | destMode |
Static Package Attributes | |
final boolean | FITPAGE = false |
final boolean | FITRECT = true |
Eric Z. Beard, ericzbeard@hotmail.com
|
Constructs a PDF Outline object. This method is used internally only. |
|
Constructs a PDF Outline object. When selected, the whole page is displayed.
|
|
Constructs a PDF Outline object. When selected, the specified region is displayed.
|
|
This adds an already existing outline to this one. Note: the outline must have been added to the PDF document before calling this method. Normally the other add methods are used.
|
|
This method creates an outline, and attaches it to this one. When the outline is selected, the supplied region is displayed. Note: the coordiates are in Java space. They are converted to User space. This allows you to have an outline for say a Chapter, then under the chapter, one for each section. You are not really limited on how deep you go, but it's best not to go below say 6 levels, for the reader's sake.
|
|
This method creates an outline, and attaches it to this one. When the outline is selected, the entire page is displayed. This allows you to have an outline for say a Chapter, then under the chapter, one for each section. You are not really limited on how deep you go, but it's best not to go below say 6 levels, for the reader's sake.
|
|
Returns the total number of descendants below this one.
|
|
Returns all outlines directly below this one.
|
|
This is called by children to find their position in this outlines tree.
|
|
Returns the last index in this outline
|
|
Returns the outline at a specified position.
|
|
Implements gnu::jpdf::PDFObject. |
|
The region on the destination page |
|
The destination page |
|
How the destination is handled |
|
When jumping to the destination, display the whole page |
|
When jumping to the destination, display the specified region |
|
The region on the destination page |
|
For subentries, this points to it's parent outline |
|
The region on the destination page |
|
The region on the destination page |