|
||||||||||
| 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
public abstract class PDFOutlineParent
Abstract superclass for PDFObjects that can be parents of a PDFOutlineItem object. This includes the classes PDFOutline and PDFOutlineItem.
| Field Summary |
|---|
| Fields inherited from class org.foray.pdf.object.PDFObject |
|---|
EOL, MSG_EOL, XREF_EOL |
| Constructor Summary | |
|---|---|
PDFOutlineParent(PDFDocument doc)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addChild(PDFOutlineItem child)
Add a child to this parent. |
protected abstract int |
count()
Return the total number of descendants. |
PDFOutlineItem |
createPdfOutlineItem(String titleText,
String internalDestination,
Color color,
boolean italic,
boolean bold)
|
List<PDFOutlineItem> |
getChildren()
Return the children of this parent. |
protected PDFOutlineItem |
getFirst()
Return the first child of this parent. |
protected PDFOutlineItem |
getLast()
Return the last child of this parent. |
| 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 |
| Constructor Detail |
|---|
public PDFOutlineParent(PDFDocument doc)
doc - The parent PDF document.| Method Detail |
|---|
public void addChild(PDFOutlineItem child)
child - The child to be added.public List<PDFOutlineItem> getChildren()
protected PDFOutlineItem getFirst()
protected PDFOutlineItem getLast()
protected abstract int count()
public PDFOutlineItem createPdfOutlineItem(String titleText,
String internalDestination,
Color color,
boolean italic,
boolean bold)
createPdfOutlineItem in interface org.axsl.pdf.PdfOutlineParent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||