|
ElegantJ PDF Library Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.elegantj.pdf.PDFObject
com.elegantj.pdf.Outlines
This class manages the documents outlines (also known as bookmarks)
| Field Summary | |
protected Outlines |
parent
For subentries, this points to it's parent outline |
| Constructor Summary | |
protected |
Outlines(PDF pdf)
Constructs a PDF Outline object. |
|
Outlines(PDF pdf,
java.lang.String title,
Page dest)
Constructs a PDF Outline object. |
|
Outlines(PDF pdf,
java.lang.String title,
Page dest,
int x,
int y,
int w,
int h)
Constructs a PDF Outline object. |
| Method Summary | |
void |
add(Outlines outline)
This adds an already existing outline to this one Note: the outline must have been added to the PDF document before calling this method. |
Outlines |
add(java.lang.String title,
Page dest)
This method creates an outline, and attaches it to this one. |
Outlines |
add(java.lang.String title,
Page dest,
int x,
int y,
int w,
int h)
This method creates an outline, and attaches it to this one |
protected int |
descendants()
Method which returns the total number of descendants below this one |
java.util.Enumeration |
elements()
Method which returns all outlines directly below this one |
protected int |
getIndex(Outlines outline)
This method is called by children to find their position in this outlines tree |
protected int |
getLast()
Method which returns the last index in this outline |
protected Outlines |
getNode(int i)
Method which returns the outline at a specified position. |
| Methods inherited from class com.elegantj.pdf.PDFObject |
getPDFObjectID, getPDFObjectRefStr, getPDFObjectType, setPDFObjectID, setPDFObjectType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Outlines parent
| Constructor Detail |
protected Outlines(PDF pdf)
pdf - The PDF object
public Outlines(PDF pdf,
java.lang.String title,
Page dest)
title - Title of the outlinedest - The destination page
public Outlines(PDF pdf,
java.lang.String title,
Page dest,
int x,
int y,
int w,
int h)
title - Title of the outlinedest - The destination pagex - coordinate of region in Java spacey - coordinate of region in Java spacew - width of region in Java spaceh - height of region in Java space| Method Detail |
public Outlines add(java.lang.String title,
Page dest)
title - Title of the outlinedest - The destination page
public Outlines add(java.lang.String title,
Page dest,
int x,
int y,
int w,
int h)
title - Title of the outlinedest - The destination pagex - coordinate of region in Java spacey - coordinate of region in Java spacew - width of region in Java spaceh - height of region in Java space
public void add(Outlines outline)
protected int getIndex(Outlines outline)
outline - The outlines to search for
protected int getLast()
protected Outlines getNode(int i)
i - index
public java.util.Enumeration elements()
protected int descendants()
|
ElegantJ PDF Library Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||