|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.pdf.object.PDFObject
org.foray.pdf.object.PDFOutlineParent
org.foray.pdf.object.PDFOutlineItem
public class PDFOutlineItem
An Outline Item Dictionary in PDF.
| Field Summary |
|---|
| Fields inherited from class org.foray.pdf.object.PDFObject |
|---|
EOL, MSG_EOL, XREF_EOL |
| Constructor Summary | |
|---|---|
PDFOutlineItem(PDFDocument doc,
PDFOutlineParent parent,
String title,
PDFAction action,
Color color,
boolean italic,
boolean bold)
Constructor to access an action. |
|
PDFOutlineItem(PDFDocument doc,
PDFOutlineParent parent,
String title,
PDFDestination destination,
Color color,
boolean italic,
boolean bold)
Constructor to access a named destination. |
|
PDFOutlineItem(PDFDocument doc,
PDFOutlineParent parent,
String title,
String destinationString,
Color color,
boolean italic,
boolean bold)
Constructor to access a named destination. |
|
| Method Summary | |
|---|---|
protected int |
count()
Return the total number of descendants. |
protected long |
flags()
Computes the flags (unsigned 32-bit integer), as described in PDF Reference, 3rd Edition, near Table 8.5. |
protected String |
toPDF()
Generates the PDF text necessary to represent the object, returning it as a String. |
| Methods inherited from class org.foray.pdf.object.PDFOutlineParent |
|---|
addChild, createPdfOutlineItem, getChildren, getFirst, getLast |
| Methods inherited from class org.foray.pdf.object.PDFObject |
|---|
bufferToByteArray, byteArrayToStream, getCharsPerLine, getGeneration, getLogger, getNumber, getPDFDocument, output, pdfID, pdfReference, setNumber, stringToByteArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.axsl.pdf.PdfOutlineParent |
|---|
createPdfOutlineItem |
| Constructor Detail |
|---|
public PDFOutlineItem(PDFDocument doc,
PDFOutlineParent parent,
String title,
String destinationString,
Color color,
boolean italic,
boolean bold)
doc - The parent PDF document.parent - The parent outline item.title - The title or text of the outline item.destinationString - The name of the named destination that should
be accessed by this Outline Item.color - The color of the outline item.italic - Indicates whether the outline item should be displayed
in an italic font.bold - Indciates whether the outline item should be displayed in a
bold font.
public PDFOutlineItem(PDFDocument doc,
PDFOutlineParent parent,
String title,
PDFDestination destination,
Color color,
boolean italic,
boolean bold)
doc - The parent PDF document.parent - The parent outline item.title - The title or text of the outline item.destination - The PDFDestination instance that should be accessed
by this Outline Item.color - The color of the outline item.italic - Indicates whether the outline item should be displayed
in an italic font.bold - Indciates whether the outline item should be displayed in a
bold font.
public PDFOutlineItem(PDFDocument doc,
PDFOutlineParent parent,
String title,
PDFAction action,
Color color,
boolean italic,
boolean bold)
doc - The parent PDF document.parent - The parent outline item.title - The title or text of the outline item.action - The PDFAction instance that should be accessed
by this Outline Item.color - The color of the outline item.italic - Indicates whether the outline item should be displayed
in an italic font.bold - Indciates whether the outline item should be displayed in a
bold font.| Method Detail |
|---|
protected int count()
PDFOutlineParent
count in class PDFOutlineParentprotected long flags()
protected String toPDF()
PDFObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||