Class PDThread
- java.lang.Object
-
- com.tom_roush.pdfbox.pdmodel.interactive.pagenavigation.PDThread
-
- All Implemented Interfaces:
COSObjectable
public class PDThread extends Object implements COSObjectable
This a single thread in a PDF document.
-
-
Constructor Summary
Constructors Constructor Description PDThread()Default constructor.PDThread(COSDictionary t)Constructor that is used for a preexisting dictionary.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description COSDictionarygetCOSObject()This will get the underlying dictionary that this object wraps.PDThreadBeadgetFirstBead()Get the first bead in the thread, or null if it has not been set yet.PDDocumentInformationgetThreadInfo()Get info about the thread, or null if there is nothing.voidsetFirstBead(PDThreadBead bead)This will set the first bead in the thread.voidsetThreadInfo(PDDocumentInformation info)Set the thread info, can be null.
-
-
-
Constructor Detail
-
PDThread
public PDThread(COSDictionary t)
Constructor that is used for a preexisting dictionary.- Parameters:
t- The underlying dictionary.
-
PDThread
public PDThread()
Default constructor.
-
-
Method Detail
-
getCOSObject
public COSDictionary getCOSObject()
This will get the underlying dictionary that this object wraps.- Specified by:
getCOSObjectin interfaceCOSObjectable- Returns:
- The underlying info dictionary.
-
getThreadInfo
public PDDocumentInformation getThreadInfo()
Get info about the thread, or null if there is nothing.- Returns:
- The thread information.
-
setThreadInfo
public void setThreadInfo(PDDocumentInformation info)
Set the thread info, can be null.- Parameters:
info- The info dictionary about this thread.
-
getFirstBead
public PDThreadBead getFirstBead()
Get the first bead in the thread, or null if it has not been set yet. This is a required field for this object.- Returns:
- The first bead in the thread.
-
setFirstBead
public void setFirstBead(PDThreadBead bead)
This will set the first bead in the thread. When this is set it will also set the thread property of the bead object.- Parameters:
bead- The first bead in the thread.
-
-